mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 13:02:06 -08: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…
Add table
Add a link
Reference in a new issue