Implemented Earthshaker Giant

This commit is contained in:
Evan Kranzler 2019-10-12 11:22:34 -04:00
parent 1693762fa8
commit 24efd96edb
2 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,53 @@
package mage.cards.e;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.effects.common.continuous.BoostControlledEffect;
import mage.abilities.effects.common.continuous.GainAbilityControlledEffect;
import mage.abilities.keyword.TrampleAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.Duration;
import mage.constants.SubType;
import mage.filter.StaticFilters;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class EarthshakerGiant extends CardImpl {
public EarthshakerGiant(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{4}{G}{G}");
this.subtype.add(SubType.GIANT);
this.subtype.add(SubType.DRUID);
this.power = new MageInt(6);
this.toughness = new MageInt(6);
// Trample
this.addAbility(TrampleAbility.getInstance());
// When Earthshaker Giant enters the battlefield, other creatures you control get +3/+3 and gain trample until end of turn.
Ability ability = new EntersBattlefieldTriggeredAbility(new BoostControlledEffect(
3, 3, Duration.EndOfTurn, true
).setText("other creatures you control get +3/+3"));
ability.addEffect(new GainAbilityControlledEffect(
TrampleAbility.getInstance(), Duration.EndOfTurn,
StaticFilters.FILTER_PERMANENT_CREATURE, true
).setText("and gain trample until end of turn"));
this.addAbility(ability);
}
private EarthshakerGiant(final EarthshakerGiant card) {
super(card);
}
@Override
public EarthshakerGiant copy() {
return new EarthshakerGiant(this);
}
}

View file

@ -19,6 +19,7 @@ public final class GameNight2019 extends ExpansionSet {
super("Game Night 2019", "GN2", ExpansionSet.buildDate(2019, 11, 15), SetType.SUPPLEMENTAL);
this.hasBasicLands = false; // TODO: change when spoiled
cards.add(new SetCardInfo("Earthshaker Giant", 5, Rarity.MYTHIC, mage.cards.e.EarthshakerGiant.class));
cards.add(new SetCardInfo("Highcliff Felidar", 1, Rarity.MYTHIC, mage.cards.h.HighcliffFelidar.class));
cards.add(new SetCardInfo("Sphinx of Enlightenment", 2, Rarity.MYTHIC, mage.cards.s.SphinxOfEnlightenment.class));
}