- Fixed Ground Seal not working for the AI's ChangeZone abilities.

This commit is contained in:
Sloth
2013-06-14 21:35:11 +00:00
parent 4174317f57
commit c12c5939c0

View File

@@ -702,6 +702,7 @@ public class ChangeZoneAi extends SpellAbilityAi {
tgt.resetTargets(); tgt.resetTargets();
List<Card> list = CardLists.getValidCards(ai.getGame().getCardsIn(origin), tgt.getValidTgts(), ai, source); List<Card> list = CardLists.getValidCards(ai.getGame().getCardsIn(origin), tgt.getValidTgts(), ai, source);
list = CardLists.getTargetableCards(list, sa);
if (sa.hasParam("AITgts")) { if (sa.hasParam("AITgts")) {
list = CardLists.getValidCards(list, sa.getParam("AITgts"), sa.getActivatingPlayer(), source); list = CardLists.getValidCards(list, sa.getParam("AITgts"), sa.getActivatingPlayer(), source);
} }
@@ -716,7 +717,6 @@ public class ChangeZoneAi extends SpellAbilityAi {
// Narrow down the list: // Narrow down the list:
if (origin.equals(ZoneType.Battlefield)) { if (origin.equals(ZoneType.Battlefield)) {
// filter out untargetables // filter out untargetables
list = CardLists.getTargetableCards(list, sa);
List<Card> aiPermanents = CardLists.filterControlledBy(list, ai); List<Card> aiPermanents = CardLists.filterControlledBy(list, ai);
// Don't blink cards that will die. // Don't blink cards that will die.