Final fix

This commit is contained in:
Zzooouhh 2017-11-23 10:07:54 +01:00 committed by GitHub
parent 0e2096395a
commit 19ef8f47f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,7 +80,7 @@ public class AttackedLastTurnWatcher extends Watcher {
attackedLastTurnCreatures.remove(activePlayer);
}
}
if (event.getType() == GameEvent.EventType.ATTACKER_DECLARED) {
if (event.getType() == GameEvent.EventType.DECLARED_ATTACKERS) {
UUID attackingPlayer = game.getCombat().getAttackingPlayerId();
Set<MageObjectReference> attackingCreatures = getAttackedThisTurnCreatures(attackingPlayer);
for (UUID attackerId : game.getCombat().getAttackers()) {