mirror of
https://github.com/correl/mage.git
synced 2025-03-12 17:00:08 -09:00
Fixed filter to some sacrifice effects.
This commit is contained in:
parent
9252ca604a
commit
fbb9cd7908
3 changed files with 6 additions and 5 deletions
|
@ -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<YawningFissure> {
|
|||
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) {
|
||||
|
|
|
@ -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<AgentOfTheFates> {
|
|||
// 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) {
|
||||
|
|
|
@ -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<ButcherOfMalakir> {
|
|||
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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue