mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
Check all targets if necessary and not just the first one
This commit is contained in:
parent
9687e21bf1
commit
0e3f28c867
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue