From fbb9cd790846515c7631681dcc01a16eeb7e7547 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Sat, 21 Sep 2013 08:57:16 +0200 Subject: [PATCH] Fixed filter to some sacrifice effects. --- Mage.Sets/src/mage/sets/magic2010/YawningFissure.java | 4 ++-- Mage.Sets/src/mage/sets/theros/AgentOfTheFates.java | 4 ++-- Mage.Sets/src/mage/sets/worldwake/ButcherOfMalakir.java | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/Mage.Sets/src/mage/sets/magic2010/YawningFissure.java b/Mage.Sets/src/mage/sets/magic2010/YawningFissure.java index 546be30e667..75081a3cc62 100644 --- a/Mage.Sets/src/mage/sets/magic2010/YawningFissure.java +++ b/Mage.Sets/src/mage/sets/magic2010/YawningFissure.java @@ -32,7 +32,7 @@ import mage.abilities.effects.common.SacrificeOpponentsEffect; import mage.cards.CardImpl; import mage.constants.CardType; import mage.constants.Rarity; -import mage.filter.common.FilterLandPermanent; +import mage.filter.common.FilterControlledLandPermanent; /** * @@ -47,7 +47,7 @@ public class YawningFissure extends CardImpl { this.color.setRed(true); // Each opponent sacrifices a land. - this.getSpellAbility().addEffect(new SacrificeOpponentsEffect(new FilterLandPermanent())); + this.getSpellAbility().addEffect(new SacrificeOpponentsEffect(new FilterControlledLandPermanent("a land"))); } public YawningFissure(final YawningFissure card) { diff --git a/Mage.Sets/src/mage/sets/theros/AgentOfTheFates.java b/Mage.Sets/src/mage/sets/theros/AgentOfTheFates.java index 70901d942b2..de1c4c63006 100644 --- a/Mage.Sets/src/mage/sets/theros/AgentOfTheFates.java +++ b/Mage.Sets/src/mage/sets/theros/AgentOfTheFates.java @@ -35,7 +35,7 @@ import mage.abilities.keyword.HeroicAbility; import mage.cards.CardImpl; import mage.constants.CardType; import mage.constants.Rarity; -import mage.filter.common.FilterCreaturePermanent; +import mage.filter.common.FilterControlledCreaturePermanent; /** * @@ -56,7 +56,7 @@ public class AgentOfTheFates extends CardImpl { // Deathtouch this.addAbility(DeathtouchAbility.getInstance()); // Heroic - Whenever you cast a spell that targets Agent of the Fates, each opponent sacrifices a creature. - this.addAbility(new HeroicAbility(new SacrificeOpponentsEffect(new FilterCreaturePermanent()))); + this.addAbility(new HeroicAbility(new SacrificeOpponentsEffect(new FilterControlledCreaturePermanent("a creature")))); } public AgentOfTheFates(final AgentOfTheFates card) { diff --git a/Mage.Sets/src/mage/sets/worldwake/ButcherOfMalakir.java b/Mage.Sets/src/mage/sets/worldwake/ButcherOfMalakir.java index f82ef79738e..2ff425637a0 100644 --- a/Mage.Sets/src/mage/sets/worldwake/ButcherOfMalakir.java +++ b/Mage.Sets/src/mage/sets/worldwake/ButcherOfMalakir.java @@ -36,6 +36,7 @@ import mage.cards.CardImpl; import mage.constants.CardType; import mage.constants.Rarity; import mage.constants.TargetController; +import mage.filter.common.FilterControlledCreaturePermanent; import mage.filter.common.FilterCreaturePermanent; import mage.filter.predicate.permanent.ControllerPredicate; @@ -64,7 +65,7 @@ public class ButcherOfMalakir extends CardImpl { this.addAbility(FlyingAbility.getInstance()); // Whenever Butcher of Malakir or another creature you control dies, each opponent sacrifices a creature. - this.addAbility(new DiesThisOrAnotherCreatureTriggeredAbility(new SacrificeOpponentsEffect(new FilterCreaturePermanent()), false, filter)); + this.addAbility(new DiesThisOrAnotherCreatureTriggeredAbility(new SacrificeOpponentsEffect(new FilterControlledCreaturePermanent("a creature")), false, filter)); } public ButcherOfMalakir(final ButcherOfMalakir card) {