mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 11:48:02 +00:00
v2
This commit is contained in:
@@ -2087,19 +2087,18 @@ public class AbilityUtils {
|
|||||||
return doXMath(castSA == null ? 0 : castSA.getPayingColors().countColors(), expr, c, ctb);
|
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();
|
SpellAbility castSA = c.getCastSA();
|
||||||
|
if (castSA == null) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
final List<Mana> paidMana = castSA.getPayingMana();
|
final List<Mana> paidMana = castSA.getPayingMana();
|
||||||
final String type = sq[0].split("_")[1];
|
final String type = sq[1];
|
||||||
int count = 0;
|
int count = 0;
|
||||||
int t = 0;
|
|
||||||
for (Mana m : paidMana) {
|
for (Mana m : paidMana) {
|
||||||
if (m.toString().equals(type)) {
|
if (m.toString().equals(type)) {
|
||||||
t++;
|
count++;
|
||||||
if (t == 2) {
|
|
||||||
count++;
|
|
||||||
t = 0;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return doXMath(count, expr, c, ctb);
|
return doXMath(count, expr, c, ctb);
|
||||||
|
|||||||
@@ -8,9 +8,9 @@ T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.S
|
|||||||
SVar:TrigDiscard:DB$ Discard | Defined$ Opponent | NumCards$ BB | Mode$ TgtChoose
|
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.
|
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:TrigPump:DB$ Pump | KW$ Trample & Haste | NumAtt$ RR
|
||||||
SVar:UU:Count$Each2SpentToCast_U
|
SVar:UU:Count$EachSpentToCast.U/HalfDown
|
||||||
SVar:BB:Count$Each2SpentToCast_B
|
SVar:BB:Count$EachSpentToCast.B/HalfDown
|
||||||
SVar:RR:Count$Each2SpentToCast_R
|
SVar:RR:Count$EachSpentToCast.R/HalfDown
|
||||||
SVar:X:Count$xPaid
|
SVar:X:Count$xPaid
|
||||||
DeckHints:Color$Blue|Black|Red
|
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.
|
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.
|
||||||
|
|||||||
@@ -2,11 +2,12 @@ Name:Clay Champion
|
|||||||
ManaCost:X 4
|
ManaCost:X 4
|
||||||
Types:Artifact Creature Construct
|
Types:Artifact Creature Construct
|
||||||
PT:2/2
|
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.
|
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: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:GG:Count$EachSpentToCast.G/HalfDown
|
||||||
SVar:WW:Count$Each2SpentToCast_W
|
SVar:GGx3:SVar$GG/Times.3
|
||||||
|
SVar:WW:Count$EachSpentToCast.W/HalfDown
|
||||||
SVar:X:Count$xPaid
|
SVar:X:Count$xPaid
|
||||||
DeckHas:Ability$Counters
|
DeckHas:Ability$Counters
|
||||||
DeckHints:Color$Green|White
|
DeckHints:Color$Green|White
|
||||||
|
|||||||
Reference in New Issue
Block a user