From f13c38e1357473f1f5a114bdc00ff9e71a8c937c Mon Sep 17 00:00:00 2001 From: swordshine Date: Sat, 17 Aug 2013 04:55:13 +0000 Subject: [PATCH] - Fixed replacement effects for cloned cards --- res/cardsfolder/v/virulent_wound.txt | 4 ++-- src/main/java/forge/card/cardfactory/CardFactory.java | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/res/cardsfolder/v/virulent_wound.txt b/res/cardsfolder/v/virulent_wound.txt index 658fc9b9d4c..5c6c6dbdf5f 100644 --- a/res/cardsfolder/v/virulent_wound.txt +++ b/res/cardsfolder/v/virulent_wound.txt @@ -2,8 +2,8 @@ Name:Virulent Wound ManaCost:B Types:Instant A:SP$ PutCounter | Cost$ B | ValidTgts$ Creature | TgtPrompt$ Select target creature | CounterType$ M1M1 | CounterNum$ 1 | IsCurse$ True | SubAbility$ DBAnimate | SpellDescription$ Put a -1/-1 counter on target creature. When that creature dies this turn, its controller gets a poison counter. -SVar:DBAnimate:DB$ Animate | Triggers$ Dies | sVars$ PoisonController | Defined$ Targeted -SVar:Dies:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Battlefield | Destination$ Graveyard | TriggerController$ TriggeredCardController | Execute$ PoisonController | TriggerDescription$ When CARDNAME dies this turn, its controller gets a poison counter. +SVar:DBAnimate:DB$ Animate | Triggers$ VirulentDies | sVars$ PoisonController | Defined$ Targeted +SVar:VirulentDies:Mode$ ChangesZone | ValidCard$ Card.Self | Origin$ Battlefield | Destination$ Graveyard | TriggerController$ TriggeredCardController | Execute$ PoisonController | TriggerDescription$ When CARDNAME dies this turn, its controller gets a poison counter. SVar:PoisonController:AB$ Poison | Cost$ 0 | Defined$ TriggeredCardController | Num$ 1 SVar:Picture:http://www.wizards.com/global/images/magic/general/virulent_wound.jpg Oracle:Put a -1/-1 counter on target creature. When that creature dies this turn, its controller gets a poison counter. \ No newline at end of file diff --git a/src/main/java/forge/card/cardfactory/CardFactory.java b/src/main/java/forge/card/cardfactory/CardFactory.java index 812b9929996..3bd5ead0f2d 100644 --- a/src/main/java/forge/card/cardfactory/CardFactory.java +++ b/src/main/java/forge/card/cardfactory/CardFactory.java @@ -526,6 +526,7 @@ public class CardFactory { to.getCharacteristics().copyFrom(characteristics); // handle triggers and replacement effect through Card class interface to.setTriggers(characteristics.getTriggers(), true); + to.setReplacementEffects(characteristics.getReplacementEffects()); } public static void copySpellAbility(SpellAbility from, SpellAbility to) {