From 221463ff4fc549fa93a7284bed0ae360a3809d17 Mon Sep 17 00:00:00 2001 From: Jeff Date: Thu, 20 Nov 2014 09:58:00 -0600 Subject: [PATCH] - Use Prevention Effect instead of Replacement Effect for Swans of Bryn Argoll. --- .../src/mage/sets/shadowmoor/SwansOfBrynArgoll.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Mage.Sets/src/mage/sets/shadowmoor/SwansOfBrynArgoll.java b/Mage.Sets/src/mage/sets/shadowmoor/SwansOfBrynArgoll.java index e3ba6e5092..90a2622698 100644 --- a/Mage.Sets/src/mage/sets/shadowmoor/SwansOfBrynArgoll.java +++ b/Mage.Sets/src/mage/sets/shadowmoor/SwansOfBrynArgoll.java @@ -31,13 +31,12 @@ import java.util.UUID; import mage.MageInt; import mage.abilities.Ability; import mage.abilities.common.SimpleStaticAbility; -import mage.abilities.effects.ReplacementEffectImpl; +import mage.abilities.effects.PreventionEffectImpl; import mage.abilities.keyword.FlyingAbility; import mage.cards.Card; import mage.cards.CardImpl; import mage.constants.CardType; import mage.constants.Duration; -import mage.constants.Outcome; import mage.constants.Rarity; import mage.constants.Zone; import mage.game.Game; @@ -83,10 +82,10 @@ public class SwansOfBrynArgoll extends CardImpl { } } -class SwansOfBrynArgollEffect extends ReplacementEffectImpl { +class SwansOfBrynArgollEffect extends PreventionEffectImpl { SwansOfBrynArgollEffect() { - super(Duration.WhileOnBattlefield, Outcome.PreventDamage); + super(Duration.WhileOnBattlefield); staticText = "If a source would deal damage to {this}, prevent that damage. The source's controller draws cards equal to the damage prevented this way"; } @@ -124,7 +123,7 @@ class SwansOfBrynArgollEffect extends ReplacementEffectImpl { @Override public boolean applies(GameEvent event, Ability source, Game game) { - return event.getType() == EventType.DAMAGE_CREATURE + return event.getType() == EventType.DAMAGE_CREATURE && event.getTargetId().equals(source.getSourceId()); }