- One more addition/cleanup in SpecialCardAi.

This commit is contained in:
Agetian
2017-01-21 18:20:17 +00:00
parent bdf1660e1d
commit 001b6aea84

View File

@@ -349,7 +349,7 @@ public class SpecialCardAi {
ManaCost cost = testSa.getPayCosts().getTotalMana(); ManaCost cost = testSa.getPayCosts().getTotalMana();
byte colorProfile = cost.getColorProfile(); byte colorProfile = cost.getColorProfile();
if ((cost.getCMC() == 0)) { if (cost.getCMC() == 0 && cost.countX() == 0) {
// no mana cost, no need to activate this SA then (additional mana not needed) // no mana cost, no need to activate this SA then (additional mana not needed)
continue; continue;
} else if (colorProfile != 0 && (cost.getColorProfile() & MagicColor.fromName(prominentColor)) == 0) { } else if (colorProfile != 0 && (cost.getColorProfile() & MagicColor.fromName(prominentColor)) == 0) {