mirror of
https://github.com/Relintai/mtg-forge-ios.git
synced 2024-11-14 04:17:19 +01:00
29260c205d
git-svn-id: http://svn.slightlymagic.net/forge/trunk@35700 269b9781-a132-4a9b-9d4e-f004f1b56b58
30 lines
2.1 KiB
Plaintext
30 lines
2.1 KiB
Plaintext
Name:Captain's Maneuver
|
|
ManaCost:X R W
|
|
Types:Instant
|
|
|
|
# turn targeted creature or player into choosen
|
|
A:SP$ ChoosePlayer | Cost$ X R W | ValidTgts$ Creature,Player | TgtPrompt$ Select target creature or player | Choices$ TargetedPlayer | Defined$ You | SubAbility$ DBChooseCreature | StackDescription$ SpellDescription | SpellDescription$ The next X damage that would be dealt to target creature or player this turn is dealt to another target creature or player instead.
|
|
SVar:DBChooseCreature:DB$ ChooseCard | DefinedCards$ Targeted | Mandatory$ True | Defined$ You | SubAbility$ DBSetVarBefore
|
|
|
|
SVar:DBSetVarBefore:DB$ StoreSVar | SVar$ Y | Type$ CountSVar | Expression$ X | SubAbility$ DBEffect
|
|
|
|
SVar:DBEffect:DB$ Effect | ValidTgts$ Creature,Player | TargetUnique$ True | TgtPrompt$ Select target creature or player to redirect the damage to | ReplacementEffects$ ManeuverDamage | Triggers$ OutOfSight | SVars$ ManeuverDamage,ManeuverDmg,ExileEffect,OutOfSight,Y | References$ ManeuverDamage,OutOfSight,ManeuverDmg,ExileEffect,Y | RememberObjects$ ThisTargetedCard,ThisTargetedPlayer | SubAbility$ DBCleanup
|
|
|
|
SVar:ManeuverDamage:Event$ DamageDone | ValidTarget$ Card.Creature+ChosenCard,Player.Chosen | ReplaceWith$ ManeuverDmg | DamageTarget$ Remembered | References$ Y | Description$ The next X damage that would be dealt to target creature or player this turn is dealt to another target creature or player instead.
|
|
|
|
SVar:ManeuverDmg:DB$ ReplaceSplitDamage | DamageTarget$ Remembered | VarName$ Y | References$ Y
|
|
|
|
SVar:OutOfSight:Mode$ ChangesZone | Origin$ Battlefield | Destination$ Any | ValidCard$ Card.ChosenCard,Card.IsRemembered | Execute$ ExileEffect | Static$ True
|
|
SVar:ExileEffect:DB$ ChangeZone | Defined$ Self | Origin$ Command | Destination$ Exile
|
|
|
|
SVar:DBCleanup:DB$ Cleanup | ClearChosenCard$ True | ClearChosenPlayer$ True
|
|
|
|
SVar:X:Count$xPaid
|
|
#X Will get overwritten by Announce
|
|
|
|
SVar:Y:Number$0
|
|
|
|
SVar:RemAIDeck:True
|
|
SVar:Picture:http://www.wizards.com/global/images/magic/general/captains_maneuver.jpg
|
|
Oracle:The next X damage that would be dealt to target creature or player this turn is dealt to another target creature or player instead.
|