Converting Exile to AF_Bounce
I converted Exile to use AbilityFactory_Bounce and the target nonwhite attacking creature was exiled. Great! But I can not get the drawback to work. AbilityFactory_Bounce has a call to CardFactoryUtil.doDrawBack().
For the drawback, the spBounceTgt keyword successfully uses:
This is the changes that I made while converting Exile to use AbilityFactory_Bounce:
For the drawback, the spBounceTgt keyword successfully uses:
- Code: Select all
K:spBounceTgt:Creature.attacking+nonWhite:Exile:Drawback$YouGainLife/dX
SVar:dX:Count$TgtCardToughness
This is the changes that I made while converting Exile to use AbilityFactory_Bounce:
- Code: Select all
Name:Exile
ManaCost:2 W
Types:Instant
Text:no text
A:SP$Bounce|Cost$2 W|ValidTgts$Creature.attacking+nonWhite|TgtPrompt$Select target nonwhite attacking creature|Destination$Exile|SpellDescription$Exile target nonwhite attacking creature. You gain life equal to its toughness.|Drawback$YouGainLife/dX
SVar:dX:Count$TgtCardToughness
SVar:RemAIDeck:True
SVar:Rarity:Rare
SVar:Picture:http://www.wizards.com/global/images/magic/general/exile.jpg
End