mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* Game log - The announced value for X costs is now posted to the log at a later point in time to avoid posting canceled announcements.
This commit is contained in:
parent
3a8f630582
commit
b10ad8e663
1 changed files with 5 additions and 2 deletions
|
@ -300,6 +300,11 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
|
||||||
logger.debug("activate failed - non mana costs");
|
logger.debug("activate failed - non mana costs");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
// inform about x costs now, so canceled announcements are not shown in the log
|
||||||
|
if (variableManaCost != null) {
|
||||||
|
int xValue = getManaCostsToPay().getX();
|
||||||
|
game.informPlayers(new StringBuilder(game.getPlayer(this.controllerId).getName()).append(" announced a value of ").append(xValue).append(" for ").append(variableManaCost.getText()).toString());
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -356,8 +361,6 @@ public abstract class AbilityImpl<T extends AbilityImpl<T>> implements Ability {
|
||||||
}
|
}
|
||||||
variableManaCost.setPaid();
|
variableManaCost.setPaid();
|
||||||
}
|
}
|
||||||
xValue = getManaCostsToPay().getX();
|
|
||||||
game.informPlayers(new StringBuilder(game.getPlayer(this.controllerId).getName()).append(" announced a value of ").append(xValue).append(" for ").append(variableManaCost.getText()).toString());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return variableManaCost;
|
return variableManaCost;
|
||||||
|
|
Loading…
Reference in a new issue