mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
commit
43b7222ab6
1 changed files with 9 additions and 0 deletions
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue