mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-14 09:48:02 +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:
@@ -365,6 +365,10 @@ public class AbilityManaPart implements java.io.Serializable {
|
||||
if (sa.isValid(restriction, this.getSourceCard().getController(), this.getSourceCard(), null)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (restriction.equals("CantPayGenericCosts")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (sa.isAbility()) {
|
||||
if (restriction.startsWith("Activated")) {
|
||||
@@ -381,10 +385,6 @@ public class AbilityManaPart implements java.io.Serializable {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (restriction.equals("CantPayGenericCosts")) {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user