Merge pull request #4824 from spjspj/master

Fix for Agyrem Plane
This commit is contained in:
spjspj 2018-04-20 20:18:47 +10:00 committed by GitHub
commit 43b7222ab6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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());
}