mirror of
https://github.com/correl/mage.git
synced 2024-11-15 19:19:33 +00:00
* Sage of Hours - Fixed a bug that the number of extra turns was not calulated correctly.
This commit is contained in:
parent
2b59a6faae
commit
79ca27a286
1 changed files with 3 additions and 2 deletions
|
@ -150,11 +150,12 @@ class SageOfHoursEffect extends OneShotEffect<SageOfHoursEffect> {
|
|||
countersRemoved = ((SageOfHoursCost) cost).getRemovedCounters();
|
||||
}
|
||||
}
|
||||
int turns = countersRemoved % 5;
|
||||
int turns = countersRemoved / 5;
|
||||
for (int i = 0; i < turns; i++) {
|
||||
game.getState().getTurnMods().add(new TurnMod(player.getId(), false));
|
||||
}
|
||||
game.informPlayers(new StringBuilder(player.getName()).append(" takes ")
|
||||
game.informPlayers(new StringBuilder("Removed ").append(countersRemoved)
|
||||
.append(" +1/+1 counters: ").append(player.getName()).append(" takes ")
|
||||
.append(CardUtil.numberToText(turns, "an"))
|
||||
.append(turns > 1 ? " extra turns ":" extra turn ")
|
||||
.append("after this one").toString());
|
||||
|
|
Loading…
Reference in a new issue