mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Improved the AI of Soulscour, Day of Judgment, Planar Cleansing and All is Dust by considering indestructible.
This commit is contained in:
@@ -9829,7 +9829,9 @@ public class CardFactory implements NewConstants {
|
||||
CardList computer = new CardList(AllZone.Computer_Play.getCards());
|
||||
|
||||
human = human.getType("Creature");
|
||||
human = human.getNotKeyword("Indestructible");
|
||||
computer = computer.getType("Creature");
|
||||
computer = computer.getNotKeyword("Indestructible");
|
||||
|
||||
// the computer will at least destroy 2 more human creatures
|
||||
return computer.size() < human.size() - 1
|
||||
@@ -10016,7 +10018,9 @@ public class CardFactory implements NewConstants {
|
||||
CardList computer = new CardList(AllZone.Computer_Play.getCards());
|
||||
|
||||
human = human.getType("Creature");
|
||||
human = human.getNotKeyword("Indestructible");
|
||||
computer = computer.getType("Creature");
|
||||
computer = computer.getNotKeyword("Indestructible");
|
||||
|
||||
// the computer will at least destroy 2 more human creatures
|
||||
return computer.size() < human.size() - 1
|
||||
@@ -10052,7 +10056,9 @@ public class CardFactory implements NewConstants {
|
||||
CardList computer = new CardList(AllZone.Computer_Play.getCards());
|
||||
|
||||
human = human.getType("Creature");
|
||||
human = human.getNotKeyword("Indestructible");
|
||||
computer = computer.getType("Creature");
|
||||
computer = computer.getNotKeyword("Indestructible");
|
||||
|
||||
// the computer will at least destroy 2 more human creatures
|
||||
return computer.size() < human.size() - 1
|
||||
@@ -21496,8 +21502,10 @@ public class CardFactory implements NewConstants {
|
||||
//same basic AI as Wrath of God, Damnation, Consume the Meek, etc.
|
||||
CardList human = AllZoneUtil.getPlayerCardsInPlay(Constant.Player.Human);
|
||||
human = human.filter(colorless);
|
||||
human = human.getNotKeyword("Indestructible");
|
||||
CardList computer = AllZoneUtil.getPlayerCardsInPlay(Constant.Player.Computer);
|
||||
computer = computer.filter(colorless);
|
||||
computer = computer.getNotKeyword("Indestructible");
|
||||
|
||||
Log.debug("All is Dust", "Current phase:" + AllZone.Phase.getPhase());
|
||||
// the computer will at least destroy 2 more human permanents
|
||||
|
||||
Reference in New Issue
Block a user