Merge branch 'treasuremana' into 'master'

AFR: mana from Treasure cards

See merge request core-developers/forge!4970
This commit is contained in:
Michael Kamensky
2021-07-12 07:40:03 +00:00
5 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
Name:Devour Intellect
ManaCost:B
Types:Sorcery
A:SP$ Pump | TgtPrompt$ Select target opponent | ValidTgt$ Opponent | SubAbility$ DBBranch
SVar:DBBranch:DB$ Branch | BranchConditionSVar$ TreasureCheck | BranchConditionSVarCompare$ GE1 | FalseSubAbility$ DBDiscard | TrueSubAbility$ DBTreasureDiscard
SVar:DBDiscard:DB$ Discard | Defined$ Targeted | NumCards$ 1 | Mode$ TgtChoose
SVar:DBTreasureDiscard:DB$ Discard | Defined$ Targeted | NumCards$ 1 | Mode$ RevealYouChoose | DiscardValid$ Card.nonLand
SVar:TreasureCheck:Count$CastTotalManaSpent Treasure
SVar:AIPreference:ManaFrom$Treasure
Oracle:Target opponent discards a card. If mana from a Treasure was spent to cast this spell, instead that player reveals their hand, you choose a nonland card from it, then that player discards that card.

View File

@@ -0,0 +1,9 @@
Name:Jaded Sell-Sword
ManaCost:3 R
Types:Creature Dragon Warrior
PT:4/3
T:Mode$ ChangesZone | Origin$ Any | Destination$ Battlefield | ValidCard$ Card.Self | CheckSVar$ TreasureCheck | Execute$ TrigPump | TriggerDescription$ When CARDNAME enters the battlefield, if mana from a Treasure was spent to cast it, it gains first strike and haste until end of turn.
SVar:TrigPump:DB$ Pump | Defined$ Self | KW$ First Strike & Haste
SVar:TreasureCheck:Count$CastTotalManaSpent Treasure
SVar:AIPreference:ManaFrom$Treasure
Oracle:When Jaded Sell-Sword enters the battlefield, if mana from a Treasure was spent to cast it, it gains first strike and haste until end of turn.

View File

@@ -0,0 +1,11 @@
Name:Kalain, Reclusive Painter
ManaCost:B R
Types:Legendary Creature Human Elf Bard
PT:1/2
T:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Any | Destination$ Battlefield | Execute$ DBToken | TriggerDescription$ When CARDNAME enters the battlefield, create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.")
SVar:DBToken:DB$ Token | TokenScript$ c_a_treasure_sac
R:Event$ Moved | ActiveZones$ Battlefield | ValidCard$ Creature.YouCtrl+Other | Destination$ Battlefield | ReplaceWith$ EnterWithP1P1 | Description$ Other creatures you control enter the battlefield with an additional +1/+1 counter on them for each mana from a Treasure spent to cast them.
SVar:EnterWithP1P1:DB$ ChangeZone | Origin$ All | Destination$ Battlefield | WithCountersType$ P1P1 | WithCountersAmount$ Treasure | Defined$ ReplacedCard
SVar:Treasure:ReplacedCardLKI$CastTotalManaSpent Treasure
DeckHas:Ability$Token & Ability$Sacrifice & Ability$Counters
Oracle:When Kalain, Reclusive Painter enters the battlefield, create a Treasure token. (It's an artifact with "{T}, Sacrifice this artifact: Add one mana of any color.")\nOther creatures you control enter the battlefield with an additional +1/+1 counter on them for each mana from a Treasure spent to cast them.

View File

@@ -0,0 +1,8 @@
Name:Price of Loyalty
ManaCost:2 R
Types:Sorcery
A:SP$ GainControl | ValidTgts$ Creature | TgtPrompt$ Select target creature | LoseControl$ EOT | Untap$ True | AddKWs$ Haste | SubAbility$ DBPump | SpellDescription$ Gain control of target creature until end of turn. Untap that creature. It gains haste until end of turn. If mana from a Treasure was spent to cast this spell, that creature gets +2/+0 until end of turn.
SVar:DBPump:DB$ Pump | CheckSVar$ TreasureCheck | Defined$ Targeted | NumAtt$ 2
SVar:TreasureCheck:Count$CastTotalManaSpent Treasure
SVar:AIPreference:ManaFrom$Treasure
Oracle:Gain control of target creature until end of turn. Untap that creature. It gains haste until end of turn. If mana from a Treasure was spent to cast this spell, that creature gets +2/+0 until end of turn.

View File

@@ -0,0 +1,10 @@
Name:Spoils of the Hunt
ManaCost:2 G
Types:Instant
A:SP$ Pump | ValidTgts$ Creature.YouCtrl | TgtPrompt$ Select target creature you control | NumAtt$ Treasure | SubAbility$ DBDealDamage | StackDescription$ {c:ThisTargetedCard} gets +1/+0 until end of turn for each mana from a Treasure that was spent to cast this spell. | SpellDescription$ Target creature you control gets +1/+0 until end of turn for each mana from a Treasure that was spent to cast this spell. Then that creature deals damage equal to its power to target creature an opponent controls.
SVar:DBDealDamage:DB$ DealDamage | ValidTgts$ Creature.OppCtrl | TgtPrompt$ Select target creature an opponent controls | NumDmg$ X | DamageSource$ ParentTarget | AILogic$ PowerDmg | StackDescription$ Then {c:ParentTarget} deals damage equal to its power to {c:ThisTargetedCard}.
SVar:X:ParentTargeted$CardPower
SVar:Treasure:Count$CastTotalManaSpent Treasure
SVar:AIPreference:ManaFrom$Treasure
AI:RemoveDeck:Random
Oracle:Target creature you control gets +1/+0 until end of turn for each mana from a Treasure that was spent to cast this spell. Then that creature deals damage equal to its power to target creature an opponent controls.