Fix for Agyrem Plane

This commit is contained in:
spjspj 2018-04-21 12:10:30 +10:00
parent 7116182aa2
commit b4d953525d

View file

@ -179,15 +179,10 @@ class AgyremRestrictionEffect extends RestrictionEffect {
@Override @Override
public boolean canAttack(Permanent attacker, UUID defenderId, Ability source, Game game) { public boolean canAttack(Permanent attacker, UUID defenderId, Ability source, Game game) {
Plane cPlane = game.getState().getCurrentPlane(); Plane cPlane = game.getState().getCurrentPlane();
if (cPlane == null) { if (cPlane != null && cPlane.getName().equalsIgnoreCase("Plane - Agyrem")) {
return true; return !defenderId.equals(source.getControllerId());
} }
if (cPlane != null) { return true;
if (cPlane.getName().equalsIgnoreCase("Plane - Agyrem")) {
return false;
}
}
return !defenderId.equals(source.getControllerId());
} }
@Override @Override