Revert "- Attempting to avoid an AI logic spec (needs testing)."

This reverts commit 7703178
This commit is contained in:
Agetian
2018-11-30 09:41:45 +03:00
parent 01f7297159
commit 36d2b4573a

View File

@@ -298,10 +298,8 @@ public class ChangeZoneAi extends SpellAbilityAi {
} else {
if (sa.hasParam("DefinedPlayer")) {
pDefined = AbilityUtils.getDefinedPlayers(sa.getHostCard(), sa.getParam("DefinedPlayer"), sa);
} else if (sa.hasParam("Defined")) {
pDefined = AbilityUtils.getDefinedPlayers(sa.getHostCard(), sa.getParam("Defined"), sa);
} else {
pDefined = ai.getGame().getPlayers(); // no Defined players, assume all player zones
pDefined = AbilityUtils.getDefinedPlayers(sa.getHostCard(), sa.getParam("Defined"), sa);
}
}
@@ -316,7 +314,11 @@ public class ChangeZoneAi extends SpellAbilityAi {
}
for (final Player p : pDefined) {
CardCollectionView list = p.getCardsIn(origin);
// TODO: figure out how to make the AI properly establish which zones to look in for cards like Sisters of Stone Death
// without needing a separate AI logic for it (the issue is that there's no Defined/DefinedPlayer in cards like that, and
// the AI normally defaults to its own zone in these cases)
CardCollectionView list = "CheckAllPlayerZones".equals(sa.getParam("AILogic")) ? p.getGame().getCardsIn(origin)
: p.getCardsIn(origin);
if (type != null && p == ai) {
// AI only "knows" about his information