diff --git a/Mage.Sets/src/mage/sets/riseoftheeldrazi/Magmaw.java b/Mage.Sets/src/mage/sets/riseoftheeldrazi/Magmaw.java index cd89f56f4c..92c9967930 100644 --- a/Mage.Sets/src/mage/sets/riseoftheeldrazi/Magmaw.java +++ b/Mage.Sets/src/mage/sets/riseoftheeldrazi/Magmaw.java @@ -33,10 +33,12 @@ import mage.Constants.Rarity; import mage.Constants.Zone; import mage.MageInt; import mage.abilities.common.SimpleActivatedAbility; -import mage.abilities.costs.common.SacrificeSourceCost; +import mage.abilities.costs.common.SacrificeTargetCost; import mage.abilities.costs.mana.GenericManaCost; import mage.abilities.effects.common.DamageTargetEffect; import mage.cards.CardImpl; +import mage.filter.common.FilterControlledPermanent; +import mage.target.common.TargetControlledPermanent; import mage.target.common.TargetNonlandPermanent; /** @@ -45,6 +47,13 @@ import mage.target.common.TargetNonlandPermanent; */ public class Magmaw extends CardImpl { + private static final FilterControlledPermanent filter = new FilterControlledPermanent("nonland permanent"); + + static { + filter.getCardType().add(CardType.LAND); + filter.setNotCardType(true); + } + public Magmaw(UUID ownerId) { super(ownerId, 158, "Magmaw", Rarity.RARE, new CardType[]{CardType.CREATURE}, "{3}{R}{R}"); this.expansionSetCode = "ROE"; @@ -55,7 +64,7 @@ public class Magmaw extends CardImpl { this.toughness = new MageInt(4); SimpleActivatedAbility ability = new SimpleActivatedAbility(Zone.BATTLEFIELD, new DamageTargetEffect(1), new GenericManaCost(1)); - ability.addCost(new SacrificeSourceCost()); + ability.addCost(new SacrificeTargetCost(new TargetControlledPermanent(filter))); ability.addTarget(new TargetNonlandPermanent()); this.addAbility(ability); }