mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
commit
43b7222ab6
1 changed files with 9 additions and 0 deletions
|
@ -178,6 +178,15 @@ 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();
|
||||||
|
if (cPlane == null) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
if (cPlane != null) {
|
||||||
|
if (cPlane.getName().equalsIgnoreCase("Plane - Agyrem")) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
return !defenderId.equals(source.getControllerId());
|
return !defenderId.equals(source.getControllerId());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue