updated ManaSpentToCastWatcher to default watcher list, reworked it to be game scope

This commit is contained in:
Evan Kranzler 2021-06-21 20:26:39 -04:00
parent 943c67fbca
commit 91eb324847
190 changed files with 272 additions and 280 deletions

View file

@ -38,11 +38,11 @@ public enum AdamantCondition implements Condition {
}
return source.getManaCostsToPay().getUsedManaToPay().getColor(coloredManaSymbol) > 2;
}
ManaSpentToCastWatcher watcher = game.getState().getWatcher(ManaSpentToCastWatcher.class, source.getSourceId());
ManaSpentToCastWatcher watcher = game.getState().getWatcher(ManaSpentToCastWatcher.class);
if (watcher == null) {
return false;
}
Mana payment = watcher.getAndResetLastPayment();
Mana payment = watcher.getAndResetLastPayment(source.getSourceId());
if (payment == null) {
return false;
}