From c4a457de6103319bb063e49f56ac2aa5e93dd5f8 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Wed, 5 Jun 2013 22:37:58 +0200 Subject: [PATCH] Fixed wrong duration of Chandra the Firebrands second ability. --- .../src/mage/sets/magic2012/ChandraTheFirebrand.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Mage.Sets/src/mage/sets/magic2012/ChandraTheFirebrand.java b/Mage.Sets/src/mage/sets/magic2012/ChandraTheFirebrand.java index b6b6cf4fdb7..8dc8985f5de 100644 --- a/Mage.Sets/src/mage/sets/magic2012/ChandraTheFirebrand.java +++ b/Mage.Sets/src/mage/sets/magic2012/ChandraTheFirebrand.java @@ -30,6 +30,7 @@ package mage.sets.magic2012; import java.util.UUID; import mage.Constants.CardType; +import mage.Constants.Duration; import mage.Constants.Rarity; import mage.abilities.DelayedTriggeredAbility; import mage.abilities.LoyaltyAbility; @@ -44,6 +45,7 @@ import mage.counters.CounterType; import mage.game.Game; import mage.game.events.GameEvent; import mage.game.stack.Spell; +import mage.target.Target; import mage.target.common.TargetCreatureOrPlayer; import mage.target.targetpointer.FixedTarget; @@ -60,15 +62,19 @@ public class ChandraTheFirebrand extends CardImpl { this.color.setRed(true); this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(CounterType.LOYALTY.createInstance(3)), false)); + // +1: Chandra, the Firebrand deals 1 damage to target creature or player. + LoyaltyAbility ability1 = new LoyaltyAbility(new DamageTargetEffect(1), 1); ability1.addTarget(new TargetCreatureOrPlayer()); this.addAbility(ability1); + // -2: When you cast your next instant or sorcery spell this turn, copy that spell. You may choose new targets for the copy. Effect effect = new CreateDelayedTriggeredAbilityEffect(new ChandraTheFirebrandAbility()); effect .setText("When you cast your next instant or sorcery spell this turn, copy that spell. You may choose new targets for the copy"); this.addAbility(new LoyaltyAbility(effect, -2)); - LoyaltyAbility ability2 = new LoyaltyAbility(new DamageTargetEffect(6), -6); + // -6: Chandra, the Firebrand deals 6 damage to each of up to six target creatures and/or players + LoyaltyAbility ability2 = new LoyaltyAbility(new DamageTargetEffect(6, true, "each of up to six target creatures and/or players"), -6); ability2.addTarget(new TargetCreatureOrPlayer(0, 6)); this.addAbility(ability2); } @@ -86,7 +92,7 @@ public class ChandraTheFirebrand extends CardImpl { class ChandraTheFirebrandAbility extends DelayedTriggeredAbility { ChandraTheFirebrandAbility() { - super(new CopyTargetSpellEffect()); + super(new CopyTargetSpellEffect(), Duration.EndOfTurn); } ChandraTheFirebrandAbility(final ChandraTheFirebrandAbility ability) {