forked from External/mage
[PIP] Implement Nuka-Cola Vending Machine
This commit is contained in:
parent
18935970f7
commit
555fdb707a
2 changed files with 49 additions and 0 deletions
48
Mage.Sets/src/mage/cards/n/NukaColaVendingMachine.java
Normal file
48
Mage.Sets/src/mage/cards/n/NukaColaVendingMachine.java
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
package mage.cards.n;
|
||||
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.SacrificePermanentTriggeredAbility;
|
||||
import mage.abilities.common.SimpleActivatedAbility;
|
||||
import mage.abilities.costs.common.TapSourceCost;
|
||||
import mage.abilities.costs.mana.GenericManaCost;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.filter.FilterPermanent;
|
||||
import mage.game.permanent.token.FoodToken;
|
||||
import mage.game.permanent.token.TreasureToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class NukaColaVendingMachine extends CardImpl {
|
||||
|
||||
private static final FilterPermanent filter = new FilterPermanent(SubType.CLUE, "a Clue");
|
||||
|
||||
public NukaColaVendingMachine(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.ARTIFACT}, "{3}");
|
||||
|
||||
// {1}, {T}: Create a Food token.
|
||||
Ability ability = new SimpleActivatedAbility(new CreateTokenEffect(new FoodToken()), new GenericManaCost(1));
|
||||
ability.addCost(new TapSourceCost());
|
||||
this.addAbility(ability);
|
||||
|
||||
// Whenever you sacrifice a Food, create a tapped Treasure token.
|
||||
this.addAbility(new SacrificePermanentTriggeredAbility(
|
||||
new CreateTokenEffect(new TreasureToken(), 1, true), filter
|
||||
));
|
||||
}
|
||||
|
||||
private NukaColaVendingMachine(final NukaColaVendingMachine card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public NukaColaVendingMachine copy() {
|
||||
return new NukaColaVendingMachine(this);
|
||||
}
|
||||
}
|
||||
|
|
@ -27,6 +27,7 @@ public final class Fallout extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Intelligence Bobblehead", 134, Rarity.UNCOMMON, mage.cards.i.IntelligenceBobblehead.class));
|
||||
cards.add(new SetCardInfo("Island", 319, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Mountain", 323, Rarity.LAND, mage.cards.basiclands.Mountain.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Nuka-Cola Vending Machine", 137, Rarity.UNCOMMON, mage.cards.n.NukaColaVendingMachine.class));
|
||||
cards.add(new SetCardInfo("Plains", 317, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Radstorm", 37, Rarity.RARE, mage.cards.r.Radstorm.class));
|
||||
cards.add(new SetCardInfo("Sol Ring", 359, Rarity.MYTHIC, mage.cards.s.SolRing.class));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue