mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28: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;
|
||||
}
|
||||
|
||||
// Check for mana restrictions
|
||||
if (!m.meetsManaRestrictions(sa, costPart)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
String manaProduced;
|
||||
// Check if paying snow mana
|
||||
if ("S".equals(costParts[nPart])) {
|
||||
|
||||
Reference in New Issue
Block a user