mirror of
https://github.com/magefree/mage.git
synced 2025-12-20 10:40:06 -08:00
- Fixed #6781
This commit is contained in:
parent
1532daf9c4
commit
29eb93ad15
1 changed files with 5 additions and 0 deletions
|
|
@ -35,6 +35,11 @@ public class CantAttackYouEffect extends RestrictionEffect {
|
||||||
if (defenderId == null) {
|
if (defenderId == null) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
// A planeswalker controlled by the controller is the defender
|
||||||
|
if (game.getPermanent(defenderId) != null) {
|
||||||
|
return !game.getPermanent(defenderId).getControllerId().equals(source.getControllerId());
|
||||||
|
}
|
||||||
|
// The controller is the defender
|
||||||
return !defenderId.equals(source.getControllerId());
|
return !defenderId.equals(source.getControllerId());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue