casting sorcery and instant from the graveyard

For all your questions regarding Image Card Coding.
Please read the Image Posting Guideline & Index before posting in this forum.
Forum rules
DO NOT POST BUG REPORT IN THIS FORUM !!

Please read carefully the forum rules related to the card coding section : viewtopic.php?f=21&t=1545

All post will be edited to follow forum rules.
Locked
mrfatbard
Posts: 198
Joined: Fri Jul 10, 2015 6:14 pm

casting sorcery and instant from the graveyard

Post by mrfatbard »

so I am trying to code chandra using the code from ablaze, which is in the game but for some reason the second ability is not working

chandra firebrand

Code: Select all

[card]
name=Chandra, the Firebrand
auto=counter(0/0,3,loyalty)
auto={C(0/0,1,Loyalty)}:damage:1 target(creature,player)
auto={C(0/0,-2,Loyalty)}:name(cast from grave) castcard(restricted) target(*[instant;sorcery]|mygraveyard)
auto={C(0/0,-6,Loyalty)}:damage:6 target(<anyamount>creature) && damage:6 target(opponent)
text=+1: Chandra, the Firebrand deals 1 damage to target creature or player -- -2: target instant or sorcery spell in your hand gains storm until end of turn -- -6: Chandra, the Firebrand deals 6 damage to each of up to five target creatures and 6 damage to an opponent
mana={3}{R}
type=Planeswalker
subtype=Chandra
[/card]
chandra ablaze

Code: Select all

[card]
name=Chandra Ablaze
auto=counter(0/0,5,loyalty)
auto={C(0/0,1,Loyalty)}:name(discard a card) all(this) transforms((,newability[reject notatarget(*|myhand)],newability[@discarded(*[red]|myhand) once:damage:4 target(*[creature;player])])) ueot
auto={C(0/0,-2,Loyalty)}:name(discard hand) reject all(*|hand) && draw:3 all(player)
auto={C(0/0,-7,Loyalty)}:name(cast cards) castcard(restricted) target(<anyamount>*[instant;sorcery]|mygraveyard)
text=+1: Discard a card. If a red card is discarded this way, Chandra Ablaze deals 4 damage to target creature or player. -- -2: Each player discards his or her hand, then draws three cards. -- -7: Cast any number of red instant and/or sorcery cards from your graveyard without paying their mana costs.
mana={4}{R}{R}
type=Planeswalker
subtype=Chandra
[/card]
User avatar
Bas
Posts: 425
Joined: Sat Dec 26, 2015 10:55 pm
Location: Germany

Re: casting sorcery and instant from the graveyard

Post by Bas »

Why not alter the code of the second one then?

->

Code: Select all

:name(cast cards) castcard(restricted) target(*[instant;sorcery]|mygraveyard)
But that's not storm anyways.

Why do you use the asterix*? Shouldnt it be just target(instant,sorcery|mygraveyard) ?
Forums are down atm.

Please join the discord server in order to not miss stuff and be reachable:
https://discord.gg/JHK5pVaK5p

(You are not required to install the software, you can use it in a browser as well, albeit I recommend installing)
Locked