mirror of
https://github.com/magefree/mage.git
synced 2025-12-28 14:32:06 -08:00
[CLB] Implemented Noble's Purse
This commit is contained in:
parent
6bf7f621bf
commit
0b1fea9281
2 changed files with 50 additions and 0 deletions
49
Mage.Sets/src/mage/cards/n/NoblesPurse.java
Normal file
49
Mage.Sets/src/mage/cards/n/NoblesPurse.java
Normal file
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue