- Little AI tweak in sortSpellAbilityByCost.

This commit is contained in:
Sloth
2012-09-16 19:19:53 +00:00
parent 897cd63122
commit 09d4e4ea26

View File

@@ -1793,6 +1793,13 @@ public class ComputerUtil {
int a1 = CardUtil.getConvertedManaCost(a);
int b1 = CardUtil.getConvertedManaCost(b);
// cast 0 mana cost spells first (might be a Mox)
if (a1 == 0) {
b1 = -2;
} else if (b1 == 0) {
a1 = -2;
}
a1 += getSpellAbilityPriority(a);
b1 += getSpellAbilityPriority(b);