diff --git a/Mage.Sets/src/mage/cards/n/NoblesPurse.java b/Mage.Sets/src/mage/cards/n/NoblesPurse.java new file mode 100644 index 00000000000..7f059eb59a3 --- /dev/null +++ b/Mage.Sets/src/mage/cards/n/NoblesPurse.java @@ -0,0 +1,49 @@ +package mage.cards.n; + +import mage.abilities.Ability; +import mage.abilities.common.EntersBattlefieldAbility; +import mage.abilities.common.SimpleActivatedAbility; +import mage.abilities.costs.common.RemoveCountersSourceCost; +import mage.abilities.costs.common.TapSourceCost; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.abilities.effects.common.TapSourceEffect; +import mage.abilities.effects.common.counter.AddCountersSourceEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.counters.CounterType; +import mage.game.permanent.token.TreasureToken; + +import java.util.UUID; + +/** + * @author TheElk801 + */ +public final class NoblesPurse extends CardImpl { + + public NoblesPurse(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{2}"); + + // Noble's Purse enters the battlefield tapped and with three coin counters on it. + Ability ability = new EntersBattlefieldAbility( + new TapSourceEffect(true), false, null, + "{this} enters the battlefield tapped and with three coin counters on it.", null + ); + ability.addEffect(new AddCountersSourceEffect(CounterType.COIN.createInstance(3))); + this.addAbility(ability); + + // {T}, Remove a coin counter from Noble's Purse: Create a Treasure token. + ability = new SimpleActivatedAbility(new CreateTokenEffect(new TreasureToken()), new TapSourceCost()); + ability.addCost(new RemoveCountersSourceCost(CounterType.COIN.createInstance())); + this.addAbility(ability); + } + + private NoblesPurse(final NoblesPurse card) { + super(card); + } + + @Override + public NoblesPurse copy() { + return new NoblesPurse(this); + } +} diff --git a/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java b/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java index 8b0f96bfeaf..454a8f834a1 100644 --- a/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java +++ b/Mage.Sets/src/mage/sets/CommanderLegendsBattleForBaldursGate.java @@ -52,6 +52,7 @@ public final class CommanderLegendsBattleForBaldursGate extends ExpansionSet { cards.add(new SetCardInfo("Morphic Pool", 357, Rarity.RARE, mage.cards.m.MorphicPool.class)); cards.add(new SetCardInfo("Moss Diamond", 327, Rarity.COMMON, mage.cards.m.MossDiamond.class)); cards.add(new SetCardInfo("Mountain", 463, Rarity.LAND, mage.cards.basiclands.Mountain.class, NON_FULL_USE_VARIOUS)); + cards.add(new SetCardInfo("Noble's Purse", 331, Rarity.UNCOMMON, mage.cards.n.NoblesPurse.class)); cards.add(new SetCardInfo("Passageway Seer", 141, Rarity.UNCOMMON, mage.cards.p.PassagewaySeer.class)); cards.add(new SetCardInfo("Plains", 451, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS)); cards.add(new SetCardInfo("Raised by Giants", 250, Rarity.RARE, mage.cards.r.RaisedByGiants.class));