Implemented Angrath's Wrath

This commit is contained in:
Evan Kranzler 2019-04-01 22:44:38 -04:00
parent 3bcada4a49
commit 3e18305890
3 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,54 @@
package mage.cards.a;
import mage.abilities.Mode;
import mage.abilities.effects.common.SacrificeEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.filter.StaticFilters;
import mage.target.TargetPlayer;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class AngrathsWrath extends CardImpl {
public AngrathsWrath(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{B}{R}");
// Choose one:
// Target player sacrifices an artifact.
this.getSpellAbility().addEffect(new SacrificeEffect(
StaticFilters.FILTER_PERMANENT_ARTIFACT,
1, "Target player"
));
this.getSpellAbility().addTarget(new TargetPlayer());
// Target player sacrifices a creature.
Mode mode = new Mode(new SacrificeEffect(
StaticFilters.FILTER_PERMANENT_CREATURE,
1, "Target player"
));
mode.addTarget(new TargetPlayer());
this.getSpellAbility().addMode(mode);
// Target player sacrifices a planeswalker.
mode = new Mode(new SacrificeEffect(
StaticFilters.FILTER_PERMANENT_PLANESWALKER,
1, "Target player"
));
mode.addTarget(new TargetPlayer());
this.getSpellAbility().addMode(mode);
}
private AngrathsWrath(final AngrathsWrath card) {
super(card);
}
@Override
public AngrathsWrath copy() {
return new AngrathsWrath(this);
}
}

View file

@ -25,6 +25,7 @@ public final class WarOfTheSpark extends ExpansionSet {
cards.add(new SetCardInfo("Ajani's Pridemate", 4, Rarity.UNCOMMON, mage.cards.a.AjanisPridemate.class)); cards.add(new SetCardInfo("Ajani's Pridemate", 4, Rarity.UNCOMMON, mage.cards.a.AjanisPridemate.class));
cards.add(new SetCardInfo("Ajani, the Greathearted", 184, Rarity.RARE, mage.cards.a.AjaniTheGreathearted.class)); cards.add(new SetCardInfo("Ajani, the Greathearted", 184, Rarity.RARE, mage.cards.a.AjaniTheGreathearted.class));
cards.add(new SetCardInfo("Angrath's Wrath", 185, Rarity.UNCOMMON, mage.cards.a.AngrathsWrath.class));
cards.add(new SetCardInfo("Arlinn's Wolf", 151, Rarity.COMMON, mage.cards.a.ArlinnsWolf.class)); cards.add(new SetCardInfo("Arlinn's Wolf", 151, Rarity.COMMON, mage.cards.a.ArlinnsWolf.class));
cards.add(new SetCardInfo("Arlinn, Voice of the Pack", 150, Rarity.UNCOMMON, mage.cards.a.ArlinnVoiceOfThePack.class)); cards.add(new SetCardInfo("Arlinn, Voice of the Pack", 150, Rarity.UNCOMMON, mage.cards.a.ArlinnVoiceOfThePack.class));
cards.add(new SetCardInfo("Augur of Bolas", 41, Rarity.UNCOMMON, mage.cards.a.AugurOfBolas.class)); cards.add(new SetCardInfo("Augur of Bolas", 41, Rarity.UNCOMMON, mage.cards.a.AugurOfBolas.class));

View file

@ -151,6 +151,12 @@ public final class StaticFilters {
FILTER_PERMANENTS.setLockedFilter(true); FILTER_PERMANENTS.setLockedFilter(true);
} }
public static final FilterPermanent FILTER_PERMANENT_ARTIFACT = new FilterArtifactPermanent("artifact");
static {
FILTER_PERMANENT_ARTIFACT.setLockedFilter(true);
}
public static final FilterPermanent FILTER_PERMANENT_ARTIFACT_AN = new FilterArtifactPermanent("an artifact"); public static final FilterPermanent FILTER_PERMANENT_ARTIFACT_AN = new FilterArtifactPermanent("an artifact");
static { static {