Bug fixes

This commit is contained in:
Zzooouhh 2017-10-27 01:26:55 +02:00 committed by GitHub
parent af4cc4fc5d
commit 8f5c4a2c80

View file

@ -158,17 +158,19 @@ class OdricMasterTacticianChooseBlockersEffect extends ContinuousRuleModifyingEf
public boolean applies(GameEvent event, Ability source, Game game) {
ChooseBlockersRedundancyWatcher watcher = (ChooseBlockersRedundancyWatcher) game.getState().getWatchers().get(ChooseBlockersRedundancyWatcher.class.getSimpleName());
watcher.decrement();
watcher.copyCount--;
if (watcher.copyCountApply > 0) {
game.informPlayers(source.getSourceObject(game).getIdName() + " didn't apply");
this.discard();
return false;
}
watcher.copyCount--;
watcher.copyCountApply = watcher.copyCount;
Player blockController = game.getPlayer(source.getControllerId());
if (blockController != null) {
game.getCombat().selectBlockers(blockController, game);
return true;
}
this.discard();
return false;
}
}