mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
* Game log - Added info about resolving triggered abilities.
This commit is contained in:
parent
3533c30591
commit
7f96cd685e
1 changed files with 7 additions and 1 deletions
|
@ -77,9 +77,9 @@ public abstract class TriggeredAbilityImpl<T extends TriggeredAbilityImpl<T>> ex
|
|||
|
||||
@Override
|
||||
public boolean resolve(Game game) {
|
||||
MageObject object = game.getObject(sourceId);
|
||||
if (optional) {
|
||||
Player player = game.getPlayer(this.getControllerId());
|
||||
MageObject object = game.getObject(sourceId);
|
||||
StringBuilder sb = new StringBuilder();
|
||||
if (object != null) {
|
||||
sb.append("Use the following ability from ").append(object.getName()).append("? ");
|
||||
|
@ -94,6 +94,12 @@ public abstract class TriggeredAbilityImpl<T extends TriggeredAbilityImpl<T>> ex
|
|||
}
|
||||
//20091005 - 603.4
|
||||
if (checkInterveningIfClause(game)) {
|
||||
// log resolve of triggered ability
|
||||
if (object != null) {
|
||||
game.informPlayers(new StringBuilder(object.getName()).append(" triggered ability resolves: ").append(this.getRule()).toString());
|
||||
} else {
|
||||
game.informPlayers(new StringBuilder("Ability triggered: ").append(this.getRule()).toString());
|
||||
}
|
||||
return super.resolve(game);
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue