mirror of
https://github.com/correl/mage.git
synced 2024-12-25 11:11:16 +00:00
Implemented Glowspore Shaman
This commit is contained in:
parent
7bc160c7ca
commit
9b8a72e6f0
2 changed files with 89 additions and 0 deletions
88
Mage.Sets/src/mage/cards/g/GlowsporeShaman.java
Normal file
88
Mage.Sets/src/mage/cards/g/GlowsporeShaman.java
Normal file
|
@ -0,0 +1,88 @@
|
|||
package mage.cards.g;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.MageInt;
|
||||
import mage.abilities.Ability;
|
||||
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||
import mage.abilities.effects.Effect;
|
||||
import mage.abilities.effects.OneShotEffect;
|
||||
import mage.abilities.effects.common.PutOnLibraryTargetEffect;
|
||||
import mage.abilities.effects.common.PutTopCardOfLibraryIntoGraveControllerEffect;
|
||||
import mage.constants.SubType;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Outcome;
|
||||
import mage.filter.common.FilterLandCard;
|
||||
import mage.game.Game;
|
||||
import mage.players.Player;
|
||||
import mage.target.Target;
|
||||
import mage.target.common.TargetCardInYourGraveyard;
|
||||
import mage.target.targetpointer.FixedTarget;
|
||||
|
||||
/**
|
||||
*
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class GlowsporeShaman extends CardImpl {
|
||||
|
||||
public GlowsporeShaman(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{B}{G}");
|
||||
|
||||
this.subtype.add(SubType.ELF);
|
||||
this.subtype.add(SubType.SHAMAN);
|
||||
this.power = new MageInt(3);
|
||||
this.toughness = new MageInt(1);
|
||||
|
||||
// When Glowspore Shaman enters the battlefield, put the top three cards of your library into your graveyard. You may put a land card from your graveyard on top of your library.
|
||||
this.addAbility(new EntersBattlefieldTriggeredAbility(
|
||||
new PutTopCardOfLibraryIntoGraveControllerEffect(3), false
|
||||
));
|
||||
}
|
||||
|
||||
public GlowsporeShaman(final GlowsporeShaman card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GlowsporeShaman copy() {
|
||||
return new GlowsporeShaman(this);
|
||||
}
|
||||
}
|
||||
|
||||
class GlowsporeShamanEffect extends OneShotEffect {
|
||||
|
||||
public static final FilterLandCard filter
|
||||
= new FilterLandCard("a land card from your graveyard");
|
||||
|
||||
public GlowsporeShamanEffect() {
|
||||
super(Outcome.Benefit);
|
||||
this.staticText = "You may put a land card from your graveyard "
|
||||
+ "on top of your library.";
|
||||
}
|
||||
|
||||
public GlowsporeShamanEffect(final GlowsporeShamanEffect effect) {
|
||||
super(effect);
|
||||
}
|
||||
|
||||
@Override
|
||||
public GlowsporeShamanEffect copy() {
|
||||
return new GlowsporeShamanEffect(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean apply(Game game, Ability source) {
|
||||
Player player = game.getPlayer(source.getControllerId());
|
||||
if (player == null) {
|
||||
return false;
|
||||
}
|
||||
Target target = new TargetCardInYourGraveyard(0, 1, filter, true);
|
||||
if (player.chooseUse(outcome, "Put a land card on top of your library?", source, game)
|
||||
&& player.choose(outcome, target, source.getSourceId(), game)) {
|
||||
Effect effect = new PutOnLibraryTargetEffect(true);
|
||||
effect.setTargetPointer(new FixedTarget(target.getFirstTarget(), game));
|
||||
effect.apply(game, source);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
|
@ -64,6 +64,7 @@ public final class GuildsOfRavnica extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Forest", 264, Rarity.LAND, mage.cards.basiclands.Forest.class, NON_FULL_USE_VARIOUS));
|
||||
cards.add(new SetCardInfo("Fresh-Faced Recruit", 216, Rarity.COMMON, mage.cards.f.FreshFacedRecruit.class));
|
||||
cards.add(new SetCardInfo("Gateway Plaza", 247, Rarity.COMMON, mage.cards.g.GatewayPlaza.class));
|
||||
cards.add(new SetCardInfo("Glowspore Shaman", 173, Rarity.UNCOMMON, mage.cards.g.GlowsporeShaman.class));
|
||||
cards.add(new SetCardInfo("Goblin Banneret", 102, Rarity.UNCOMMON, mage.cards.g.GoblinBanneret.class));
|
||||
cards.add(new SetCardInfo("Goblin Cratermaker", 103, Rarity.UNCOMMON, mage.cards.g.GoblinCratermaker.class));
|
||||
cards.add(new SetCardInfo("Goblin Electromancer", 174, Rarity.COMMON, mage.cards.g.GoblinElectromancer.class));
|
||||
|
|
Loading…
Reference in a new issue