* Commander storm abilities - fixed rollback error on card usage in non commander games;

This commit is contained in:
Oleg Agafonov 2021-09-04 17:15:51 +04:00
parent 18cca57b44
commit 84ea133ec5
9 changed files with 12 additions and 13 deletions

View file

@ -161,6 +161,7 @@ public abstract class GameImpl implements Game {
this.startingLife = startingLife;
this.executingRollback = false;
this.startingHandSize = startingHandSize;
initGameDefaultWatchers();
}
@ -1266,6 +1267,7 @@ public abstract class GameImpl implements Game {
newWatchers.add(new CardsDrawnThisTurnWatcher());
newWatchers.add(new ManaSpentToCastWatcher());
newWatchers.add(new ManaPaidSourceWatcher());
newWatchers.add(new CommanderPlaysCountWatcher()); // commander plays count uses in non commander games by some cards
// runtime check - allows only GAME scope (one watcher per game)
newWatchers.forEach(watcher -> {