mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Possible fix for Arc Trail Targetting.
This commit is contained in:
parent
e142c6c211
commit
103eb61051
1 changed files with 5 additions and 2 deletions
|
@ -287,9 +287,12 @@ public class ComputerPlayer<T extends ComputerPlayer<T>> extends PlayerImpl<T> i
|
|||
targets = threats(opponentId, ((FilterCreatureOrPlayer)t.getFilter()).getCreatureFilter(), game);
|
||||
}
|
||||
for (Permanent permanent: targets) {
|
||||
List<UUID> alreadyTargetted = target.getTargets();
|
||||
if (t.canTarget(playerId, permanent.getId(), source, game)) {
|
||||
target.addTarget(permanent.getId(), source, game);
|
||||
return true;
|
||||
if ( alreadyTargetted != null && !alreadyTargetted.contains(permanent.getId()) ) {
|
||||
target.addTarget(permanent.getId(), source, game);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (outcome.isGood()) {
|
||||
|
|
Loading…
Reference in a new issue