Implemented Anje's Ravager

This commit is contained in:
Evan Kranzler 2019-08-01 20:14:22 -04:00
parent b7731e4f90
commit 6a35a083ab
2 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,53 @@
package mage.cards.a;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.AttacksEachCombatStaticAbility;
import mage.abilities.common.AttacksTriggeredAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.abilities.effects.common.discard.DiscardHandControllerEffect;
import mage.abilities.keyword.MadnessAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class AnjesRavager extends CardImpl {
public AnjesRavager(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{2}{R}");
this.subtype.add(SubType.VAMPIRE);
this.subtype.add(SubType.BERSERKER);
this.power = new MageInt(3);
this.toughness = new MageInt(3);
// Anje's Ravager attacks each combat if able.
this.addAbility(new AttacksEachCombatStaticAbility());
// Whenever Anje's Ravager attacks, discard your hand, then draw three cards.
Ability ability = new AttacksTriggeredAbility(
new DiscardHandControllerEffect().setText("discard your hand,"), false
);
ability.addEffect(new DrawCardSourceControllerEffect(3).concatBy("then"));
this.addAbility(ability);
// Madness {1}{R}
this.addAbility(new MadnessAbility(this, new ManaCostsImpl("{1}{R}")));
}
private AnjesRavager(final AnjesRavager card) {
super(card);
}
@Override
public AnjesRavager copy() {
return new AnjesRavager(this);
}
}

View file

@ -20,6 +20,7 @@ public final class Commander2019Edition extends ExpansionSet {
this.blockName = "Command Zone"; this.blockName = "Command Zone";
this.hasBasicLands = false; // temporary fix for tests this.hasBasicLands = false; // temporary fix for tests
cards.add(new SetCardInfo("Anje's Ravager", 22, Rarity.RARE, mage.cards.a.AnjesRavager.class));
cards.add(new SetCardInfo("Ghired, Conclave Exile", 42, Rarity.MYTHIC, mage.cards.g.GhiredConclaveExile.class)); cards.add(new SetCardInfo("Ghired, Conclave Exile", 42, Rarity.MYTHIC, mage.cards.g.GhiredConclaveExile.class));
cards.add(new SetCardInfo("Seedborn Muse", 179, Rarity.RARE, mage.cards.s.SeedbornMuse.class)); cards.add(new SetCardInfo("Seedborn Muse", 179, Rarity.RARE, mage.cards.s.SeedbornMuse.class));
} }