diff --git a/.gitattributes b/.gitattributes index c93427cf422..513b94e8c37 100644 --- a/.gitattributes +++ b/.gitattributes @@ -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 diff --git a/forge-gui/res/cardsfolder/h/honorable_passage.txt b/forge-gui/res/cardsfolder/h/honorable_passage.txt new file mode 100644 index 00000000000..238715a778e --- /dev/null +++ b/forge-gui/res/cardsfolder/h/honorable_passage.txt @@ -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.