- Minor tweak to DestroyAllAi.

This commit is contained in:
Agetian
2017-01-26 11:47:42 +00:00
parent a729d44970
commit 15e0722948

View File

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