mirror of
https://github.com/correl/mage.git
synced 2025-03-16 09:16:26 -09:00
Fix for Agyrem Plane
This commit is contained in:
parent
7116182aa2
commit
b4d953525d
1 changed files with 4 additions and 9 deletions
|
@ -179,19 +179,14 @@ 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
|
||||||
public AgyremRestrictionEffect copy() {
|
public AgyremRestrictionEffect copy() {
|
||||||
return new AgyremRestrictionEffect(this);
|
return new AgyremRestrictionEffect(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue