mirror of
https://github.com/magefree/mage.git
synced 2026-01-21 18:59:58 -08:00
* Orzhov Advokist - Fixed that the attack preventing effect did not work correctly.
This commit is contained in:
parent
3d9b51bec3
commit
4b4aef8ed5
3 changed files with 39 additions and 5 deletions
|
|
@ -121,9 +121,11 @@ class OrzhovAdvokistEffect extends OneShotEffect {
|
|||
}
|
||||
}
|
||||
for (UUID playerId : players) {
|
||||
FilterCreaturePermanent filter = new FilterCreaturePermanent();
|
||||
filter.add(new ControllerIdPredicate(playerId));
|
||||
game.addEffect(new CantAttackYouAllEffect(Duration.UntilYourNextTurn, filter, true), source);
|
||||
if (playerId != source.getControllerId()) {
|
||||
FilterCreaturePermanent filter = new FilterCreaturePermanent();
|
||||
filter.add(new ControllerIdPredicate(playerId));
|
||||
game.addEffect(new CantAttackYouAllEffect(Duration.UntilYourNextTurn, filter, true), source);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue