mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
[SNC] Implemented Gala Greeters
This commit is contained in:
parent
4e24b2832d
commit
160c45ba15
2 changed files with 55 additions and 0 deletions
54
Mage.Sets/src/mage/cards/g/GalaGreeters.java
Normal file
54
Mage.Sets/src/mage/cards/g/GalaGreeters.java
Normal file
|
@ -0,0 +1,54 @@
|
|||
package mage.cards.g;
|
||||
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.Mode;
|
||||
import mage.abilities.common.AllianceAbility;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.SubType;
|
||||
import mage.counters.CounterType;
|
||||
import mage.game.permanent.token.TreasureToken;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class GalaGreeters extends CardImpl {
|
||||
|
||||
public GalaGreeters(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{1}{G}");
|
||||
|
||||
this.subtype.add(SubType.ELF);
|
||||
this.subtype.add(SubType.DRUID);
|
||||
this.power = new MageInt(1);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// Alliance — Whenever another creature enters the battlefield under your control, choose one that hasn't been chosen this turn—
|
||||
// • Put a +1/+1 counter on Gala Greeters.
|
||||
Ability ability = new AllianceAbility(new AddCountersSourceEffect(CounterType.P1P1.createInstance()));
|
||||
ability.getModes().setEachModeOnlyOnce(true);
|
||||
ability.getModes().setResetEachTurn(true);
|
||||
|
||||
// • Create a tapped Treasure token.
|
||||
ability.addMode(new Mode(new CreateTokenEffect(new TreasureToken(), 1, true, false)));
|
||||
|
||||
// • You gain 2 life.
|
||||
ability.addMode(new Mode(new GainLifeEffect(2)));
|
||||
this.addAbility(ability);
|
||||
}
|
||||
|
||||
private GalaGreeters(final GalaGreeters card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GalaGreeters copy() {
|
||||
return new GalaGreeters(this);
|
||||
}
|
||||
}
|
|
@ -29,6 +29,7 @@ public final class StreetsOfNewCapenna extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Cut of the Profits", 72, Rarity.RARE, mage.cards.c.CutOfTheProfits.class));
|
||||
cards.add(new SetCardInfo("Devilish Valet", 105, Rarity.RARE, mage.cards.d.DevilishValet.class));
|
||||
cards.add(new SetCardInfo("Forest", 270, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Gala Greeters", 148, Rarity.RARE, mage.cards.g.GalaGreeters.class));
|
||||
cards.add(new SetCardInfo("Island", 264, Rarity.LAND, mage.cards.basiclands.Island.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Jetmir's Garden", 250, Rarity.RARE, mage.cards.j.JetmirsGarden.class));
|
||||
cards.add(new SetCardInfo("Jetmir, Nexus of Revels", 193, Rarity.MYTHIC, mage.cards.j.JetmirNexusOfRevels.class));
|
||||
|
|
Loading…
Reference in a new issue