mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
adding RestrictValid parameter support to ComputerUtil to check restriction for AI
This commit is contained in:
@@ -769,6 +769,11 @@ public class ComputerUtil {
|
|||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check for mana restrictions
|
||||||
|
if (!m.meetsManaRestrictions(sa, costPart)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
String manaProduced;
|
String manaProduced;
|
||||||
// Check if paying snow mana
|
// Check if paying snow mana
|
||||||
if ("S".equals(costParts[nPart])) {
|
if ("S".equals(costParts[nPart])) {
|
||||||
|
|||||||
Reference in New Issue
Block a user