mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Minor tweak to DestroyAllAi.
This commit is contained in:
@@ -71,7 +71,7 @@ public class DestroyAllAi extends SpellAbilityAi {
|
||||
if (ai.isCardInPlay("Crucible of Worlds") && !opponent.isCardInPlay("Crucible of Worlds") && !opplist.isEmpty()) {
|
||||
return true;
|
||||
}
|
||||
if (ComputerUtilCard.evaluatePermanentList(ailist) < ComputerUtilCard.evaluatePermanentList(opplist) + 1) {
|
||||
if (ComputerUtilCard.evaluatePermanentList(ailist) + 1 < ComputerUtilCard.evaluatePermanentList(opplist)) {
|
||||
return false;
|
||||
}
|
||||
} else if (ComputerUtilCard.evaluatePermanentList(ailist) >= ComputerUtilCard.evaluatePermanentList(opplist)) {
|
||||
@@ -175,7 +175,7 @@ public class DestroyAllAi extends SpellAbilityAi {
|
||||
if (ai.isCardInPlay("Crucible of Worlds") && !opponent.isCardInPlay("Crucible of Worlds") && !opplist.isEmpty()) {
|
||||
return true;
|
||||
}
|
||||
if (ComputerUtilCard.evaluatePermanentList(ailist) < ComputerUtilCard.evaluatePermanentList(opplist) + 1) {
|
||||
if (ComputerUtilCard.evaluatePermanentList(ailist) + 1 < ComputerUtilCard.evaluatePermanentList(opplist)) {
|
||||
return false;
|
||||
}
|
||||
} // otherwise evaluate both lists by CMC and pass only if human permanents are more valuable
|
||||
|
||||
Reference in New Issue
Block a user