sovereign_okinec_ahau.txt + support (#4000)

This commit is contained in:
Northmoc
2023-10-28 07:29:48 -04:00
committed by GitHub
parent c54133f1ad
commit 71f2f72ed8
2 changed files with 15 additions and 0 deletions

View File

@@ -1971,6 +1971,9 @@ public class AbilityUtils {
if (sq[0].contains("CardPower")) {
return doXMath(c.getNetPower(), expr, c, ctb);
}
if (sq[0].contains("CardBasePower")) {
return doXMath(c.getCurrentPower(), expr, c, ctb);
}
if (sq[0].contains("CardToughness")) {
return doXMath(c.getNetToughness(), expr, c, ctb);
}

View File

@@ -0,0 +1,12 @@
Name:Sovereign Okinec Ahau
ManaCost:2 G W
Types:Legendary Creature Cat Noble
PT:3/4
K:Ward:2
T:Mode$ Attacks | ValidCard$ Card.Self | Execute$ TrigPutCounter | TriggerZones$ Battlefield | TriggerDescription$ Whenever CARDNAME attacks, for each creature you control with power greater than that creature's base power, put a number of +1/+1 counters on that creature equal to the difference.
SVar:TrigPutCounter:DB$ PutCounter | Defined$ Valid Creature.YouCtrl+powerGTbasePower | CounterType$ P1P1 | CounterNumPerDefined$ X
SVar:X:Count$CardPower/Minus.Count$CardBasePower
DeckHas:Ability$Counters
DeckHints:Ability$Counters
SVar:HasAttackEffect:TRUE
Oracle:Ward {2}\nWhenever Sovereign Okinec Ahau attacks, for each creature you control with power greater than that creature's base power, put a number of +1/+1 counters on that creature equal to the difference.