add Honorable Passage with having check for ReplacedSource

This commit is contained in:
Hanmac
2016-06-21 15:11:38 +00:00
parent 4b490af6c8
commit 592942f4c1
2 changed files with 23 additions and 0 deletions

1
.gitattributes vendored
View File

@@ -7660,6 +7660,7 @@ forge-gui/res/cardsfolder/h/honor_guard.txt svneol=native#text/plain
forge-gui/res/cardsfolder/h/honor_of_the_pure.txt svneol=native#text/plain
forge-gui/res/cardsfolder/h/honor_the_fallen.txt -text
forge-gui/res/cardsfolder/h/honor_worn_shaku.txt svneol=native#text/plain
forge-gui/res/cardsfolder/h/honorable_passage.txt -text svneol=unset#text/plain
forge-gui/res/cardsfolder/h/honorable_scout.txt -text
forge-gui/res/cardsfolder/h/honored_hierarch.txt -text
forge-gui/res/cardsfolder/h/honors_reward.txt -text

View File

@@ -0,0 +1,22 @@
Name:Honorable Passage
ManaCost:1 W
Types:Instant
A:SP$ ChooseSource | Cost$ 1 W | Choices$ Card | AILogic$ NeedsPrevention | SubAbility$ DBEffect | StackDescription$ SpellDescription | SpellDescription$ The next time a source of your choice would deal damage to target creature or player this turn, prevent that damage. If damage from a red source is prevented this way, Honorable Passage deals that much damage to the source's controller.
SVar:DBEffect:DB$ Effect | ValidTgts$ Creature,Player | TgtPrompt$ Select target creature or player to prevent damage to | ReplacementEffects$ RepDmg | SVars$ RepDmg,DealDamage,OutOfSight,ExileEffect,X,Y | RememberObjects$ Targeted | Triggers$ OutOfSight | SubAbility$ DBCleanup | ConditionDefined$ ChosenCard | ConditionPresent$ Card | ConditionCompare$ GE1
SVar:OutOfSight:Mode$ ChangesZone | TriggerZones$ Command | Origin$ Battlefield | Destination$ Any | ValidCard$ Card.IsRemembered | Execute$ ExileEffect | Static$ True
SVar:RepDmg:Event$ DamageDone | ValidTarget$ Card.IsRemembered,Player.IsRemembered | ValidSource$ Card.ChosenCard | ReplaceWith$ DealDamage | PreventionEffect$ True | Description$ The next time a source of your choice would deal damage to target creature or player this turn, prevent that damage. If damage from a red source is prevented this way, Honorable Passage deals that much damage to the source's controller.
SVar:DealDamage:AB$ DealDamage | Cost$ 0 | Defined$ ReplacedSourceController | DamageSource$ EffectSource | NumDmg$ X | References$ X,Y | ConditionCheckSVar$ Y | ConditionSVarCompare$ GE1 | SubAbility$ ExileEffect
SVar:ExileEffect:DB$ ChangeZone | Defined$ Self | Origin$ Command | Destination$ Exile
SVar:DBCleanup:DB$ Cleanup | ClearChosenCard$ True
SVar:X:ReplaceCount$DamageAmount
SVar:Y:ReplacedSource$Valid Card.RedSource
SVar:Picture:http://www.wizards.com/global/images/magic/general/honorable_passage.jpg
Oracle:The next time a source of your choice would deal damage to target creature or player this turn, prevent that damage. If damage from a red source is prevented this way, Honorable Passage deals that much damage to the source's controller.