[OTC] Implement Elemental Eruption

This commit is contained in:
theelk801 2024-04-05 09:05:40 -04:00
parent 406ced04bf
commit e4cd084b1b
3 changed files with 69 additions and 0 deletions

View file

@ -0,0 +1,35 @@
package mage.cards.e;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.keyword.StormAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.game.permanent.token.DragonElementalToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class ElementalEruption extends CardImpl {
public ElementalEruption(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{4}{R}{R}");
// Create a 4/4 red Dragon Elemental creature token with flying and prowess.
this.getSpellAbility().addEffect(new CreateTokenEffect(new DragonElementalToken()));
// Storm
this.addAbility(new StormAbility());
}
private ElementalEruption(final ElementalEruption card) {
super(card);
}
@Override
public ElementalEruption copy() {
return new ElementalEruption(this);
}
}

View file

@ -22,6 +22,7 @@ public final class OutlawsOfThunderJunctionCommander extends ExpansionSet {
cards.add(new SetCardInfo("Angel of Indemnity", 45, Rarity.RARE, mage.cards.a.AngelOfIndemnity.class)); cards.add(new SetCardInfo("Angel of Indemnity", 45, Rarity.RARE, mage.cards.a.AngelOfIndemnity.class));
cards.add(new SetCardInfo("Angelic Sell-Sword", 10, Rarity.RARE, mage.cards.a.AngelicSellSword.class)); cards.add(new SetCardInfo("Angelic Sell-Sword", 10, Rarity.RARE, mage.cards.a.AngelicSellSword.class));
cards.add(new SetCardInfo("Charred Graverobber", 19, Rarity.RARE, mage.cards.c.CharredGraverobber.class)); cards.add(new SetCardInfo("Charred Graverobber", 19, Rarity.RARE, mage.cards.c.CharredGraverobber.class));
cards.add(new SetCardInfo("Elemental Eruption", 27, Rarity.RARE, mage.cards.e.ElementalEruption.class));
cards.add(new SetCardInfo("Stella Lee, Wild Card", 3, Rarity.MYTHIC, mage.cards.s.StellaLeeWildCard.class)); cards.add(new SetCardInfo("Stella Lee, Wild Card", 3, Rarity.MYTHIC, mage.cards.s.StellaLeeWildCard.class));
} }
} }

View file

@ -0,0 +1,33 @@
package mage.game.permanent.token;
import mage.MageInt;
import mage.abilities.keyword.FlyingAbility;
import mage.abilities.keyword.ProwessAbility;
import mage.constants.CardType;
import mage.constants.SubType;
/**
* @author TheElk801
*/
public final class DragonElementalToken extends TokenImpl {
public DragonElementalToken() {
super("Dragon Token", "4/4 red Dragon Elemental creature token with flying and prowess");
cardType.add(CardType.CREATURE);
color.setRed(true);
subtype.add(SubType.DRAGON);
subtype.add(SubType.ELEMENTAL);
power = new MageInt(4);
toughness = new MageInt(4);
addAbility(FlyingAbility.getInstance());
addAbility(new ProwessAbility());
}
private DragonElementalToken(final DragonElementalToken token) {
super(token);
}
public DragonElementalToken copy() {
return new DragonElementalToken(this);
}
}