mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +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(Target target : mode.getTargets()) {
|
||||||
for(UUID targetId : target.getTargets()) {
|
for(UUID targetId : target.getTargets()) {
|
||||||
Permanent permanent = game.getPermanentOrLKIBattlefield(targetId);
|
Permanent permanent = game.getPermanentOrLKIBattlefield(targetId);
|
||||||
if(permanent != null) {
|
if(permanent != null && targetFilter.match(permanent, input.getSourceId(), input.getPlayerId(), game)) {
|
||||||
return targetFilter.match(permanent, input.getSourceId(), input.getPlayerId(), game);
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue