- Fixed AI targeting Mystic Retrieval to itself.

This commit is contained in:
Sloth
2015-07-19 08:35:43 +00:00
parent d01910cdaa
commit bf0302b817

View File

@@ -738,6 +738,9 @@ public class ChangeZoneAi extends SpellAbilityAi {
if (source.isInZone(ZoneType.Hand)) { if (source.isInZone(ZoneType.Hand)) {
list = CardLists.filter(list, Predicates.not(CardPredicates.nameEquals(source.getName()))); // Don't get the same card back. list = CardLists.filter(list, Predicates.not(CardPredicates.nameEquals(source.getName()))); // Don't get the same card back.
} }
if (sa.isSpell()) {
list.remove(source); // spells can't target their own source, because it's actually in the stack zone
}
//System.out.println("isPreferredTarget " + list); //System.out.println("isPreferredTarget " + list);
if (sa.hasParam("AttachedTo")) { if (sa.hasParam("AttachedTo")) {
//System.out.println("isPreferredTarget att " + list); //System.out.println("isPreferredTarget att " + list);