[CMR] Implemented Impulsive Pilferer

This commit is contained in:
Evan Kranzler 2020-11-05 21:49:19 -05:00
parent 100cd30fb7
commit 61c1477599
2 changed files with 45 additions and 0 deletions

View file

@ -0,0 +1,44 @@
package mage.cards.i;
import mage.MageInt;
import mage.abilities.common.DiesSourceTriggeredAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.keyword.EncoreAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.game.permanent.token.TreasureToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class ImpulsivePilferer extends CardImpl {
public ImpulsivePilferer(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{R}");
this.subtype.add(SubType.GOBLIN);
this.subtype.add(SubType.PIRATE);
this.power = new MageInt(1);
this.toughness = new MageInt(1);
// When Impulsive Pilferer dies, create a Treasure token.
this.addAbility(new DiesSourceTriggeredAbility(new CreateTokenEffect(new TreasureToken())));
// Encore {3}{R}
this.addAbility(new EncoreAbility(new ManaCostsImpl<>("{3}{R}")));
}
private ImpulsivePilferer(final ImpulsivePilferer card) {
super(card);
}
@Override
public ImpulsivePilferer copy() {
return new ImpulsivePilferer(this);
}
}

View file

@ -174,6 +174,7 @@ public final class CommanderLegends extends ExpansionSet {
cards.add(new SetCardInfo("Immaculate Magistrate", 234, Rarity.RARE, mage.cards.i.ImmaculateMagistrate.class));
cards.add(new SetCardInfo("Imoti, Celebrant of Bounty", 280, Rarity.UNCOMMON, mage.cards.i.ImotiCelebrantOfBounty.class));
cards.add(new SetCardInfo("Imperious Perfect", 235, Rarity.UNCOMMON, mage.cards.i.ImperiousPerfect.class));
cards.add(new SetCardInfo("Impulsive Pilferer", 185, Rarity.COMMON, mage.cards.i.ImpulsivePilferer.class));
cards.add(new SetCardInfo("Ingenuity Engine", 317, Rarity.UNCOMMON, mage.cards.i.IngenuityEngine.class));
cards.add(new SetCardInfo("Inspiring Roar", 23, Rarity.COMMON, mage.cards.i.InspiringRoar.class));
cards.add(new SetCardInfo("Intangible Virtue", 24, Rarity.UNCOMMON, mage.cards.i.IntangibleVirtue.class));