mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- Fixed Ground Seal not working for the AI's ChangeZone abilities.
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
Reference in New Issue
Block a user