* Target opponent or planeswalker abilities - fixed rollback error while AI plays that cards;

This commit is contained in:
Oleg Agafonov 2020-01-15 07:03:26 +04:00
parent 2d4b2d0699
commit c30316512b

View file

@ -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
/*