Fix for Agyrem Plane

This commit is contained in:
spjspj 2018-04-20 19:50:27 +10:00
parent 4280d92a37
commit 7116182aa2

View file

@ -178,6 +178,15 @@ 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) {
if (cPlane.getName().equalsIgnoreCase("Plane - Agyrem")) {
return false;
}
}
return !defenderId.equals(source.getControllerId());
}