- Use Prevention Effect instead of Replacement Effect for Swans of Bryn Argoll.

This commit is contained in:
Jeff 2014-11-20 09:58:00 -06:00
parent 6dd1cace26
commit 221463ff4f

View file

@ -31,13 +31,12 @@ import java.util.UUID;
import mage.MageInt; import mage.MageInt;
import mage.abilities.Ability; import mage.abilities.Ability;
import mage.abilities.common.SimpleStaticAbility; import mage.abilities.common.SimpleStaticAbility;
import mage.abilities.effects.ReplacementEffectImpl; import mage.abilities.effects.PreventionEffectImpl;
import mage.abilities.keyword.FlyingAbility; import mage.abilities.keyword.FlyingAbility;
import mage.cards.Card; import mage.cards.Card;
import mage.cards.CardImpl; import mage.cards.CardImpl;
import mage.constants.CardType; import mage.constants.CardType;
import mage.constants.Duration; import mage.constants.Duration;
import mage.constants.Outcome;
import mage.constants.Rarity; import mage.constants.Rarity;
import mage.constants.Zone; import mage.constants.Zone;
import mage.game.Game; import mage.game.Game;
@ -83,10 +82,10 @@ public class SwansOfBrynArgoll extends CardImpl {
} }
} }
class SwansOfBrynArgollEffect extends ReplacementEffectImpl { class SwansOfBrynArgollEffect extends PreventionEffectImpl {
SwansOfBrynArgollEffect() { 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"; 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";
} }