mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 02:08:00 +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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (restriction.equals("CantPayGenericCosts")) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
if (sa.isAbility()) {
|
if (sa.isAbility()) {
|
||||||
if (restriction.startsWith("Activated")) {
|
if (restriction.startsWith("Activated")) {
|
||||||
restriction = TextUtil.fastReplace(restriction, "Activated", "Card");
|
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;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user