mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
support "cmcGT$ Turns" in StaticAbilityCantBeCast
This commit is contained in:
@@ -125,10 +125,15 @@ public class StaticAbilityCantBeCast {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stAb.hasParam("cmcGT") && (activator != null)
|
if (stAb.hasParam("cmcGT") && (activator != null)) {
|
||||||
&& (card.getCMC() <= CardLists.getType(activator.getCardsIn(ZoneType.Battlefield),
|
if (stAb.getParam("cmcGT").equals("Turns")) {
|
||||||
stAb.getParam("cmcGT")).size())) {
|
if (card.getCMC() <= activator.getTurn()) {
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
|
} else if (card.getCMC() <= CardLists.getType(activator.getCardsIn(ZoneType.Battlefield),
|
||||||
|
stAb.getParam("cmcGT")).size()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (stAb.hasParam("NumLimitEachTurn") && activator != null) {
|
if (stAb.hasParam("NumLimitEachTurn") && activator != null) {
|
||||||
|
|||||||
Reference in New Issue
Block a user