This commit is contained in:
Northmoc
2022-11-07 16:49:33 -05:00
parent d5bea4140d
commit cf9a8013f0
3 changed files with 14 additions and 14 deletions

View File

@@ -2087,19 +2087,18 @@ public class AbilityUtils {
return doXMath(castSA == null ? 0 : castSA.getPayingColors().countColors(), expr, c, ctb);
}
if (sq[0].startsWith("Each2SpentToCast")) {
if (sq[0].startsWith("EachSpentToCast")) {
SpellAbility castSA = c.getCastSA();
if (castSA == null) {
return 0;
}
final List<Mana> paidMana = castSA.getPayingMana();
final String type = sq[0].split("_")[1];
final String type = sq[1];
int count = 0;
int t = 0;
for (Mana m : paidMana) {
if (m.toString().equals(type)) {
t++;
if (t == 2) {
count++;
t = 0;
}
count++;
}
}
return doXMath(count, expr, c, ctb);

View File

@@ -8,9 +8,9 @@ T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.S
SVar:TrigDiscard:DB$ Discard | Defined$ Opponent | NumCards$ BB | Mode$ TgtChoose
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | CheckSVar$ RR | Execute$ TrigPump | TriggerDescription$ When CARDNAME enters the battlefield, for each {R}{R} spent to cast it, it gets +1/+0 and gains trample and haste until end of turn.
SVar:TrigPump:DB$ Pump | KW$ Trample & Haste | NumAtt$ RR
SVar:UU:Count$Each2SpentToCast_U
SVar:BB:Count$Each2SpentToCast_B
SVar:RR:Count$Each2SpentToCast_R
SVar:UU:Count$EachSpentToCast.U/HalfDown
SVar:BB:Count$EachSpentToCast.B/HalfDown
SVar:RR:Count$EachSpentToCast.R/HalfDown
SVar:X:Count$xPaid
DeckHints:Color$Blue|Black|Red
Oracle:When Bladecoil Serpent enters the battlefield, for each {U}{U} spent to cast it, draw a card.\nWhen Bladecoil Serpent enters the battlefield, for each {B}{B} spent to cast it, each opponent discards a card.\nWhen Bladecoil Serpent enters the battlefield, for each {R}{R} spent to cast it, it gets +1/+0 and gains trample and haste until end of turn.

View File

@@ -2,11 +2,12 @@ Name:Clay Champion
ManaCost:X 4
Types:Artifact Creature Construct
PT:2/2
K:etbCounter:P1P1:GG:no condition:CARDNAME enters the battlefield with three +1/+1 counters on it for each {G}{G} spent to cast it.
K:etbCounter:P1P1:GGx3:no condition:CARDNAME enters the battlefield with three +1/+1 counters on it for each {G}{G} spent to cast it.
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | Execute$ TrigPutCounter | TriggerDescription$ When CARDNAME enters the battlefield, choose up to two other target creatures you control. For each {W}{W} spent to cast CARDNAME, put a +1/+1 counter on each of them.
SVar:TrigPutCounter:DB$ PutCounter | ValidTgts$ Creature.Other+YouCtrl | TgtPrompt$ Choose up to two other target creatures you control | TargetMin$ 0 | TargetMax$ 2 | CounterType$ P1P1 | CounterNum$ WW
SVar:GG:Count$Each2SpentToCast_G/Times.3
SVar:WW:Count$Each2SpentToCast_W
SVar:GG:Count$EachSpentToCast.G/HalfDown
SVar:GGx3:SVar$GG/Times.3
SVar:WW:Count$EachSpentToCast.W/HalfDown
SVar:X:Count$xPaid
DeckHas:Ability$Counters
DeckHints:Color$Green|White