Check all targets if necessary and not just the first one

This commit is contained in:
LoneFox 2015-10-15 09:53:24 +03:00 committed by AlumiuN
parent b88884b4ab
commit 4ec6164c86

View file

@ -59,8 +59,8 @@ public class TargetsPermanentPredicate implements ObjectSourcePlayerPredicate<Ob
for(Target target : mode.getTargets()) {
for(UUID targetId : target.getTargets()) {
Permanent permanent = game.getPermanentOrLKIBattlefield(targetId);
if(permanent != null) {
return targetFilter.match(permanent, input.getSourceId(), input.getPlayerId(), game);
if(permanent != null && targetFilter.match(permanent, input.getSourceId(), input.getPlayerId(), game)) {
return true;
}
}
}