mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
move CantPayGenericCosts higher up in mana restrictions so that the activated restriction doesn't short circuit for loop
This commit is contained in:
@@ -366,6 +366,10 @@ public class AbilityManaPart implements java.io.Serializable {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (restriction.equals("CantPayGenericCosts")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (sa.isAbility()) {
|
||||
if (restriction.startsWith("Activated")) {
|
||||
restriction = TextUtil.fastReplace(restriction, "Activated", "Card");
|
||||
@@ -382,10 +386,6 @@ public class AbilityManaPart implements java.io.Serializable {
|
||||
}
|
||||
}
|
||||
|
||||
if (restriction.equals("CantPayGenericCosts")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user