mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-17 19:28:01 +00:00
- 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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user