mirror of
https://github.com/correl/mage.git
synced 2024-12-26 03:00:11 +00:00
Fix for Agyrem Plane
This commit is contained in:
parent
7116182aa2
commit
b4d953525d
1 changed files with 4 additions and 9 deletions
|
@ -179,16 +179,11 @@ 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;
|
||||
}
|
||||
}
|
||||
if (cPlane != null && cPlane.getName().equalsIgnoreCase("Plane - Agyrem")) {
|
||||
return !defenderId.equals(source.getControllerId());
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public AgyremRestrictionEffect copy() {
|
||||
|
|
Loading…
Reference in a new issue