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
parent 9687e21bf1
commit 0e3f28c867

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