Fixing Mana types being inappropriately referenced in relation to Matrices

This commit is contained in:
tehdiplomat
2018-08-28 12:24:04 -04:00
parent db7ab85f26
commit 341a241a82
6 changed files with 23 additions and 19 deletions

View File

@@ -913,6 +913,10 @@ public class ComputerUtilMana {
// Make mana needed to avoid negative effect a mandatory cost for the AI
for (String manaPart : card.getSVar("ManaNeededToAvoidNegativeEffect").split(",")) {
// convert long color strings to short color strings
if (manaPart.isEmpty()) {
continue;
}
byte mask = ManaAtom.fromName(manaPart);
// make mana mandatory for AI