* Faerie Imposter - Fixed AI didn't handle target (TargetPermanent) correctly (fixes #360).

This commit is contained in:
LevelX2 2013-10-20 14:21:54 +02:00
parent 517d046efe
commit ba27dbf36e
2 changed files with 4 additions and 4 deletions

View file

@ -216,6 +216,7 @@ public class ComputerPlayer<T extends ComputerPlayer<T>> extends PlayerImpl<T> i
return true;
}
}
return false;
}
if (target instanceof TargetCardInHand) {
List<Card> cards = new ArrayList<Card>();
@ -261,6 +262,7 @@ public class ComputerPlayer<T extends ComputerPlayer<T>> extends PlayerImpl<T> i
return false;
}
}
if (target instanceof TargetPermanentOrPlayer) {
List<Permanent> targets;
TargetPermanentOrPlayer t = ((TargetPermanentOrPlayer) target);