move CantPayGenericCosts higher up in mana restrictions so that the activated restriction doesn't short circuit for loop

This commit is contained in:
rory
2020-05-11 16:46:48 -07:00
committed by friarsol
parent b2018aafe6
commit d311231c96

View File

@@ -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;