* Orzhov Advokist - Fixed that the attack preventing effect did not work correctly.

This commit is contained in:
LevelX2 2016-12-11 16:25:08 +01:00
parent 3d9b51bec3
commit 4b4aef8ed5
3 changed files with 39 additions and 5 deletions

View file

@ -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;
}