- Fixed AI not playing Reality Strobe from suspend when only lands are available as targets.

This commit is contained in:
Sloth
2015-07-25 07:38:34 +00:00
parent 9ac815169a
commit 44e1c8a886

View File

@@ -822,7 +822,7 @@ public class ChangeZoneAi extends SpellAbilityAi {
} }
} }
} }
// if it's blink or bounce, try to save my about to die stuff // if it's blink or bounce, try to save my about to die stuff
if ((destination.equals(ZoneType.Hand) || (destination.equals(ZoneType.Exile) if ((destination.equals(ZoneType.Hand) || (destination.equals(ZoneType.Exile)
&& (subApi == ApiType.DelayedTrigger || (subApi == ApiType.ChangeZone && subAffected.equals("Remembered"))))) && (subApi == ApiType.DelayedTrigger || (subApi == ApiType.ChangeZone && subAffected.equals("Remembered")))))
@@ -834,6 +834,8 @@ public class ChangeZoneAi extends SpellAbilityAi {
return true; return true;
} }
// bounce opponents stuff
list = CardLists.filterControlledBy(list, ai.getOpponents());
if (!CardLists.getNotType(list, "Land").isEmpty()) { if (!CardLists.getNotType(list, "Land").isEmpty()) {
// When bouncing opponents stuff other than lands, don't bounce cards with CMC 0 // When bouncing opponents stuff other than lands, don't bounce cards with CMC 0
list = CardLists.filter(list, new Predicate<Card>() { list = CardLists.filter(list, new Predicate<Card>() {
@@ -968,7 +970,7 @@ public class ChangeZoneAi extends SpellAbilityAi {
} else { } else {
choice = mostExpensive; choice = mostExpensive;
} }
//option to hold removal instead only applies for single targeted removal //option to hold removal instead only applies for single targeted removal
if (!immediately && tgt.getMaxTargets(source, sa) == 1) { if (!immediately && tgt.getMaxTargets(source, sa) == 1) {
if (!ComputerUtilCard.useRemovalNow(sa, choice, 0, destination)) { if (!ComputerUtilCard.useRemovalNow(sa, choice, 0, destination)) {