mirror of
https://github.com/correl/mage.git
synced 2024-11-14 11:09:31 +00:00
* Target opponent or planeswalker abilities - fixed rollback error while AI plays that cards;
This commit is contained in:
parent
2d4b2d0699
commit
c30316512b
1 changed files with 3 additions and 2 deletions
|
@ -724,9 +724,10 @@ public class ComputerPlayer extends PlayerImpl implements Player {
|
|||
}
|
||||
}
|
||||
|
||||
if (target.getOriginalTarget() instanceof TargetPlayerOrPlaneswalker) {
|
||||
if (target.getOriginalTarget() instanceof TargetPlayerOrPlaneswalker
|
||||
|| target.getOriginalTarget() instanceof TargetOpponentOrPlaneswalker) {
|
||||
List<Permanent> targets;
|
||||
TargetPlayerOrPlaneswalker origTarget = ((TargetPlayerOrPlaneswalker) target.getOriginalTarget());
|
||||
TargetPermanentOrPlayer origTarget = ((TargetPermanentOrPlayer) target.getOriginalTarget());
|
||||
|
||||
// TODO: if effect is bad and no opponent's targets available then AI can't target yourself but must by rules
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue