mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
Fix possible permanent targets for ability that does not target.
This commit is contained in:
parent
87a3c46925
commit
db68a827ce
1 changed files with 4 additions and 2 deletions
|
@ -185,8 +185,10 @@ public class TargetPermanent<T extends TargetPermanent<T>> extends TargetObject<
|
|||
Set<UUID> possibleTargets = new HashSet<>();
|
||||
MageObject targetSource = game.getObject(sourceId);
|
||||
for (Permanent permanent: game.getBattlefield().getActivePermanents(filter, sourceControllerId, sourceId, game)) {
|
||||
if (!targets.containsKey(permanent.getId()) && permanent.canBeTargetedBy(targetSource, sourceControllerId, game)) {
|
||||
possibleTargets.add(permanent.getId());
|
||||
if (!targets.containsKey(permanent.getId())) {
|
||||
if (notTarget || permanent.canBeTargetedBy(targetSource, sourceControllerId, game)) {
|
||||
possibleTargets.add(permanent.getId());
|
||||
}
|
||||
}
|
||||
}
|
||||
return possibleTargets;
|
||||
|
|
Loading…
Reference in a new issue