Merge pull request #60 from Northmoc/snc_pom

SNC: Paragon of Modernity and support
This commit is contained in:
Northmoc
2022-04-16 09:32:08 -04:00
committed by GitHub
2 changed files with 17 additions and 0 deletions

View File

@@ -1822,6 +1822,12 @@ public class AbilityUtils {
return root == null ? 0 : root.getTotalManaSpent();
}
// Count$ManaColorsPaid
if (sq[0].equals("ManaColorsPaid")) {
final SpellAbility root = sa.getRootAbility();
return doXMath(root == null ? 0 : root.getPayingColors().countColors(), expr, c, ctb);
}
// Count$Adamant.<Color>.<True>.<False>
if (sq[0].startsWith("Adamant")) {
final String payingMana = StringUtils.join(sa.getRootAbility().getPayingMana());

View File

@@ -0,0 +1,11 @@
Name:Paragon of Modernity
ManaCost:4
Types:Artifact Creature Angel Warrior
PT:2/2
K:Flying
A:AB$ Branch | Cost$ 3 | BranchConditionSVar$ X | BranchConditionSVarCompare$ EQ3 | FalseSubAbility$ DBPump | TrueSubAbility$ DBPutCounter | SpellDescription$ CARDNAME gets +1/+1 until end of turn. If exactly three colors of mana were spent to activate this ability, put a +1/+1 counter on it instead.
SVar:DBPump:DB$ Pump | Defined$ Self | NumAtt$ 1 | NumDef$ 1
SVar:DBPutCounter:DB$ PutCounter | Defined$ Self | CounterType$ P1P1
SVar:X:Count$ManaColorsPaid
DeckHas:Ability$Counters
Oracle:Flying\n{3}: Paragon of Modernity gets +1/+1 until end of turn. If exactly three colors of mana were spent to activate this ability, put a +1/+1 counter on it instead.