diff --git a/Mage.Sets/src/mage/cards/p/PhyrexianPurge.java b/Mage.Sets/src/mage/cards/p/PhyrexianPurge.java index c0128b767b..1a69e274c6 100644 --- a/Mage.Sets/src/mage/cards/p/PhyrexianPurge.java +++ b/Mage.Sets/src/mage/cards/p/PhyrexianPurge.java @@ -32,6 +32,7 @@ import mage.abilities.Ability; import mage.abilities.SpellAbility; import mage.abilities.costs.common.PayLifeCost; import mage.abilities.effects.common.DestroyMultiTargetEffect; +import mage.abilities.effects.common.InfoEffect; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; @@ -44,17 +45,17 @@ import mage.target.common.TargetCreaturePermanent; * @author escplan9 - Derek Monturo */ public class PhyrexianPurge extends CardImpl { - + public PhyrexianPurge(UUID ownerId, CardSetInfo setInfo) { - - super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{B}{R}"); - + super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{2}{B}{R}"); + // Destroy any number of target creatures. // Phyrexian Purge costs 3 life more to cast for each target. this.getSpellAbility().addTarget(new TargetCreaturePermanent(0, Integer.MAX_VALUE)); this.getSpellAbility().addEffect(new DestroyMultiTargetEffect()); + this.getSpellAbility().addEffect(new InfoEffect("

{this} costs 3 life more to cast for each target")); } - + @Override public void adjustCosts(Ability ability, Game game) { int numTargets = ability.getTargets().get(0).getTargets().size(); @@ -62,17 +63,17 @@ public class PhyrexianPurge extends CardImpl { ability.getCosts().add(new PayLifeCost(numTargets * 3)); } } - + @Override public void adjustTargets(Ability ability, Game game) { - if (ability instanceof SpellAbility) { - ability.getTargets().clear(); - Player you = game.getPlayer(ownerId); - int maxTargets = you.getLife() / 3; - ability.addTarget(new TargetCreaturePermanent(0, maxTargets)); - } + if (ability instanceof SpellAbility) { + ability.getTargets().clear(); + Player you = game.getPlayer(ownerId); + int maxTargets = you.getLife() / 3; + ability.addTarget(new TargetCreaturePermanent(0, maxTargets)); + } } - + public PhyrexianPurge(final PhyrexianPurge card) { super(card); } @@ -81,4 +82,4 @@ public class PhyrexianPurge extends CardImpl { public PhyrexianPurge copy() { return new PhyrexianPurge(this); } -} \ No newline at end of file +}