From b4d953525d5513757161cd5b09d18a5df3f03c03 Mon Sep 17 00:00:00 2001 From: spjspj Date: Sat, 21 Apr 2018 12:10:30 +1000 Subject: [PATCH] Fix for Agyrem Plane --- .../java/mage/game/command/planes/AgyremPlane.java | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Mage/src/main/java/mage/game/command/planes/AgyremPlane.java b/Mage/src/main/java/mage/game/command/planes/AgyremPlane.java index 6582338512..c18e5d979f 100644 --- a/Mage/src/main/java/mage/game/command/planes/AgyremPlane.java +++ b/Mage/src/main/java/mage/game/command/planes/AgyremPlane.java @@ -179,19 +179,14 @@ class AgyremRestrictionEffect extends RestrictionEffect { @Override public boolean canAttack(Permanent attacker, UUID defenderId, Ability source, Game game) { Plane cPlane = game.getState().getCurrentPlane(); - if (cPlane == null) { - return true; + if (cPlane != null && cPlane.getName().equalsIgnoreCase("Plane - Agyrem")) { + return !defenderId.equals(source.getControllerId()); } - if (cPlane != null) { - if (cPlane.getName().equalsIgnoreCase("Plane - Agyrem")) { - return false; - } - } - return !defenderId.equals(source.getControllerId()); + return true; } @Override public AgyremRestrictionEffect copy() { return new AgyremRestrictionEffect(this); } -} +} \ No newline at end of file