mirror of
https://github.com/correl/mage.git
synced 2024-12-24 11:50:45 +00:00
Check all targets if necessary and not just the first one
This commit is contained in:
parent
b88884b4ab
commit
4ec6164c86
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