* Target opponent or planeswalker abilities - fixed rollback error while AI plays that cards;
@@ -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
/*
