Testing
Pyroblast and
Hydroblast- Hydroblast | Open
- Name:Hydroblast
ManaCost:U
Types:Instant
Text:no text
A:SP$ Counter | Cost$ U | TargetType$ Spell | TgtPrompt$ Select target spell | ValidTgts$ Card | ConditionDefined$ Targeted | ConditionPresent$ Card.Red | ConditionCompare$ GE1 | PrecostDesc$ Choose one - | SpellDescription$ Counter target spell if it's red;
A:SP$ Destroy | Cost$ U | ValidTgts$ Permanent | TgtPrompt$ Select target permanent | ConditionDefined$ Targeted | ConditionPresent$ Card.Red | ConditionCompare$ GE1 | SpellDescription$ or destroy target permanent if it's red.
SVar:RemAIDeck:True
SVar:RemRandomDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/hydroblast.jpg
SetInfo:5ED|Uncommon|http://magiccards.info/scans/en/5e/94.jpg
SetInfo:ICE|Common|http://magiccards.info/scans/en/ia/72.jpg
Oracle:Choose one - Counter target spell if it's red; or destroy target permanent if it's red.
End
- Pyroblast | Open
- Name:Pyroblast
ManaCost:R
Types:Instant
Text:no text
A:SP$ Counter | Cost$ R | TargetType$ Spell | TgtPrompt$ Select target spell | ValidTgts$ Card | ConditionDefined$ Targeted | ConditionPresent$ Card.Blue | ConditionCompare$ GE1 | PrecostDesc$ Choose one - | SpellDescription$ Counter target spell if it's blue;
A:SP$ Destroy | Cost$ R | ValidTgts$ Permanent | TgtPrompt$ Select target permanent | ConditionDefined$ Targeted | ConditionPresent$ Card.Blue | ConditionCompare$ GE1 | SpellDescription$ or destroy target permanent if it's blue.
SVar:RemAIDeck:True
SVar:RemRandomDeck:True
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/pyroblast.jpg
SetInfo:5ED|Uncommon|http://magiccards.info/scans/en/5e/262.jpg
SetInfo:ICE|Common|http://magiccards.info/scans/en/ia/213.jpg
Oracle:Choose one - Counter target spell if it's blue; or destroy target permanent if it's blue.
End
Does anyone know what the correct ConditionDefined value is for the counterspell part? It doesn't work with targeted the same as the destroy part (because of the targeting through a list I'm guessing). I could script it as a tareting restriction because we don't support any cards that change the colour of a spell on the stack at the moment, but I would rather script it properly first time.
Edit: I suddenly realised that by default Conditions apply to the battlefield zone. So I tried adding "ConditionZone$ Stack" but it still doesn't work. Any ideas?
Edit 2: Just checked the script for
Cursed Scroll and it seems that a ConditionDefined card will be checked in whichever zone its in. So the first edit is irrelevant. So thanks for looking into it Sol.