mirror of
https://github.com/magefree/mage.git
synced 2025-12-21 19:11:59 -08:00
[LCI] Implement Ghalta, Stampede Tyrant (#11270)
This commit is contained in:
parent
745127c46f
commit
a9fce4b05e
3 changed files with 82 additions and 2 deletions
79
Mage.Sets/src/mage/cards/g/GhaltaStampedeTyrant.java
Normal file
79
Mage.Sets/src/mage/cards/g/GhaltaStampedeTyrant.java
Normal file
|
|
@ -0,0 +1,79 @@
|
||||||
|
package mage.cards.g;
|
||||||
|
|
||||||
|
import mage.MageInt;
|
||||||
|
import mage.abilities.Ability;
|
||||||
|
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
|
||||||
|
import mage.abilities.effects.OneShotEffect;
|
||||||
|
import mage.abilities.keyword.TrampleAbility;
|
||||||
|
import mage.cards.CardImpl;
|
||||||
|
import mage.cards.CardSetInfo;
|
||||||
|
import mage.cards.CardsImpl;
|
||||||
|
import mage.constants.*;
|
||||||
|
import mage.filter.StaticFilters;
|
||||||
|
import mage.game.Game;
|
||||||
|
import mage.players.Player;
|
||||||
|
import mage.target.TargetCard;
|
||||||
|
import mage.target.common.TargetCardInHand;
|
||||||
|
|
||||||
|
import java.util.UUID;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Susucr
|
||||||
|
*/
|
||||||
|
public final class GhaltaStampedeTyrant extends CardImpl {
|
||||||
|
|
||||||
|
public GhaltaStampedeTyrant(UUID ownerId, CardSetInfo setInfo) {
|
||||||
|
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{5}{G}{G}{G}");
|
||||||
|
|
||||||
|
this.supertype.add(SuperType.LEGENDARY);
|
||||||
|
this.subtype.add(SubType.ELDER);
|
||||||
|
this.subtype.add(SubType.DINOSAUR);
|
||||||
|
this.power = new MageInt(12);
|
||||||
|
this.toughness = new MageInt(12);
|
||||||
|
|
||||||
|
// Trample
|
||||||
|
this.addAbility(TrampleAbility.getInstance());
|
||||||
|
|
||||||
|
// When Ghalta, Stampede Tyrant enters the battlefield, put any number of creature cards from your hand onto the battlefield.
|
||||||
|
this.addAbility(new EntersBattlefieldTriggeredAbility(new GhaltaStampedeTyrantEffect()));
|
||||||
|
}
|
||||||
|
|
||||||
|
private GhaltaStampedeTyrant(final GhaltaStampedeTyrant card) {
|
||||||
|
super(card);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GhaltaStampedeTyrant copy() {
|
||||||
|
return new GhaltaStampedeTyrant(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Very similar to Last March of the End
|
||||||
|
class GhaltaStampedeTyrantEffect extends OneShotEffect {
|
||||||
|
|
||||||
|
GhaltaStampedeTyrantEffect() {
|
||||||
|
super(Outcome.PutCreatureInPlay);
|
||||||
|
staticText = "put any number of creature cards from your hand onto the battlefield";
|
||||||
|
}
|
||||||
|
|
||||||
|
private GhaltaStampedeTyrantEffect(final GhaltaStampedeTyrantEffect effect) {
|
||||||
|
super(effect);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public GhaltaStampedeTyrantEffect copy() {
|
||||||
|
return new GhaltaStampedeTyrantEffect(this);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean apply(Game game, Ability source) {
|
||||||
|
Player player = game.getPlayer(source.getControllerId());
|
||||||
|
if (player == null) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
TargetCard target = new TargetCardInHand(0, Integer.MAX_VALUE, StaticFilters.FILTER_CARD_CREATURES);
|
||||||
|
player.choose(outcome, target, source, game);
|
||||||
|
player.moveCards(new CardsImpl(target.getTargets()), Zone.BATTLEFIELD, source, game);
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -50,7 +50,7 @@ public final class LastMarchOfTheEnts extends CardImpl {
|
||||||
class LastMarchOfTheEntsEffect extends OneShotEffect {
|
class LastMarchOfTheEntsEffect extends OneShotEffect {
|
||||||
|
|
||||||
LastMarchOfTheEntsEffect() {
|
LastMarchOfTheEntsEffect() {
|
||||||
super(Outcome.Benefit);
|
super(Outcome.PutCreatureInPlay);
|
||||||
staticText = ", then put any number of creature cards from your hand onto the battlefield";
|
staticText = ", then put any number of creature cards from your hand onto the battlefield";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -70,7 +70,7 @@ class LastMarchOfTheEntsEffect extends OneShotEffect {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
TargetCard target = new TargetCardInHand(0, Integer.MAX_VALUE, StaticFilters.FILTER_CARD_CREATURES);
|
TargetCard target = new TargetCardInHand(0, Integer.MAX_VALUE, StaticFilters.FILTER_CARD_CREATURES);
|
||||||
player.choose(Outcome.PutCreatureInPlay, target, source, game);
|
player.choose(outcome, target, source, game);
|
||||||
player.moveCards(new CardsImpl(target.getTargets()), Zone.BATTLEFIELD, source, game);
|
player.moveCards(new CardsImpl(target.getTargets()), Zone.BATTLEFIELD, source, game);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,7 @@ public final class LostCavernsOfIxalan extends ExpansionSet {
|
||||||
|
|
||||||
cards.add(new SetCardInfo("Cavern of Souls", 269, Rarity.MYTHIC, mage.cards.c.CavernOfSouls.class));
|
cards.add(new SetCardInfo("Cavern of Souls", 269, Rarity.MYTHIC, mage.cards.c.CavernOfSouls.class));
|
||||||
cards.add(new SetCardInfo("Forest", 291, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS));
|
cards.add(new SetCardInfo("Forest", 291, Rarity.LAND, mage.cards.basiclands.Forest.class, FULL_ART_BFZ_VARIOUS));
|
||||||
|
cards.add(new SetCardInfo("Ghalta, Stampede Tyrant", 185, Rarity.MYTHIC, mage.cards.g.GhaltaStampedeTyrant.class));
|
||||||
cards.add(new SetCardInfo("Island", 288, Rarity.LAND, mage.cards.basiclands.Island.class, FULL_ART_BFZ_VARIOUS));
|
cards.add(new SetCardInfo("Island", 288, Rarity.LAND, mage.cards.basiclands.Island.class, FULL_ART_BFZ_VARIOUS));
|
||||||
cards.add(new SetCardInfo("Mountain", 290, Rarity.LAND, mage.cards.basiclands.Mountain.class, FULL_ART_BFZ_VARIOUS));
|
cards.add(new SetCardInfo("Mountain", 290, Rarity.LAND, mage.cards.basiclands.Mountain.class, FULL_ART_BFZ_VARIOUS));
|
||||||
cards.add(new SetCardInfo("Plains", 287, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS));
|
cards.add(new SetCardInfo("Plains", 287, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue