Implemented Cavern Whisperer

This commit is contained in:
Evan Kranzler 2020-04-03 17:25:17 -04:00
parent 737b07442f
commit b64f42d46c
2 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,46 @@
package mage.cards.c;
import mage.MageInt;
import mage.abilities.common.MutatesSourceTriggeredAbility;
import mage.abilities.effects.common.discard.DiscardEachPlayerEffect;
import mage.abilities.keyword.MenaceAbility;
import mage.abilities.keyword.MutateAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.constants.TargetController;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class CavernWhisperer extends CardImpl {
public CavernWhisperer(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{B}");
this.subtype.add(SubType.NIGHTMARE);
this.power = new MageInt(4);
this.toughness = new MageInt(4);
// Mutate {3}{B}
this.addAbility(new MutateAbility(this, "{3}{B}"));
// Menace
this.addAbility(new MenaceAbility());
// Whenever this creature mutates, each opponent discards a card.
this.addAbility(new MutatesSourceTriggeredAbility(new DiscardEachPlayerEffect(TargetController.OPPONENT)));
}
private CavernWhisperer(final CavernWhisperer card) {
super(card);
}
@Override
public CavernWhisperer copy() {
return new CavernWhisperer(this);
}
}

View file

@ -28,6 +28,7 @@ public final class IkoriaLairOfBehemoths extends ExpansionSet {
cards.add(new SetCardInfo("Boon of the Wish-Giver", 43, Rarity.UNCOMMON, mage.cards.b.BoonOfTheWishGiver.class));
cards.add(new SetCardInfo("Bristling Boar", 146, Rarity.COMMON, mage.cards.b.BristlingBoar.class));
cards.add(new SetCardInfo("Cavern Whisperer", 79, Rarity.COMMON, mage.cards.c.CavernWhisperer.class));
cards.add(new SetCardInfo("Chittering Harvester", 80, Rarity.UNCOMMON, mage.cards.c.ChitteringHarvester.class));
cards.add(new SetCardInfo("Cloudpiercer", 112, Rarity.COMMON, mage.cards.c.Cloudpiercer.class));
cards.add(new SetCardInfo("Colossification", 148, Rarity.RARE, mage.cards.c.Colossification.class));