1
0
Fork 0
mirror of https://github.com/correl/mage.git synced 2025-04-10 17:00:08 -09:00

Updated watcher for Gaze of the Gorgon

This commit is contained in:
L_J 2018-02-20 17:38:14 +00:00 committed by GitHub
parent 866c1c3973
commit c8d142492f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,4 +89,9 @@ public class BlockedAttackerWatcher extends Watcher {
Set<MageObjectReference> blockedAttackers = blockData.get(new MageObjectReference(blocker, game));
return blockedAttackers != null && blockedAttackers.contains(new MageObjectReference(attacker, game));
}
public boolean creatureHasBlockedAttacker(MageObjectReference attacker, MageObjectReference blocker, Game game) {
Set<MageObjectReference> blockedAttackers = blockData.get(blocker);
return blockedAttackers != null && blockedAttackers.contains(attacker);
}
}