- Attempting to implement a more concise and correct code for Sisters of Stone Death which would also work for the AI.

This commit is contained in:
Agetian
2018-11-30 09:10:55 +03:00
parent d5d08b2443
commit 6da3fd898f
3 changed files with 8 additions and 5 deletions

View File

@@ -314,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