adding RestrictValid parameter support to ComputerUtil to check restriction for AI

This commit is contained in:
ArsenalNut
2012-05-16 05:35:36 +00:00
parent 6646f84f29
commit d8c8e07ff1

View File

@@ -769,6 +769,11 @@ public class ComputerUtil {
continue;
}
// Check for mana restrictions
if (!m.meetsManaRestrictions(sa, costPart)) {
continue;
}
String manaProduced;
// Check if paying snow mana
if ("S".equals(costParts[nPart])) {