[TDM] Implement Ambling Stormshell

This commit is contained in:
theelk801 2025-03-27 08:54:22 -04:00
parent 017be2fdd9
commit 7bba753fa7
2 changed files with 63 additions and 0 deletions

View file

@ -0,0 +1,62 @@
package mage.cards.a;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.AttacksTriggeredAbility;
import mage.abilities.common.SpellCastControllerTriggeredAbility;
import mage.abilities.costs.mana.ManaCostsImpl;
import mage.abilities.effects.common.DrawCardSourceControllerEffect;
import mage.abilities.effects.common.UntapSourceEffect;
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
import mage.abilities.keyword.WardAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.counters.CounterType;
import mage.filter.FilterSpell;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class AmblingStormshell extends CardImpl {
private static final FilterSpell filter = new FilterSpell("a Turtle spell");
static {
filter.add(SubType.TURTLE.getPredicate());
}
public AmblingStormshell(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{U}{U}");
this.subtype.add(SubType.TURTLE);
this.power = new MageInt(5);
this.toughness = new MageInt(9);
// Ward {2}
this.addAbility(new WardAbility(new ManaCostsImpl<>("{2}")));
// Whenever this creature attacks, put three stun counters on it and draw three cards.
Ability ability = new AttacksTriggeredAbility(
new AddCountersSourceEffect(CounterType.STUN.createInstance(3))
.setText("put three stun counters on it")
);
ability.addEffect(new DrawCardSourceControllerEffect(3).concatBy("and"));
this.addAbility(ability);
// Whenever you cast a Turtle spell, untap this creature.
this.addAbility(new SpellCastControllerTriggeredAbility(new UntapSourceEffect(), filter, false));
}
private AmblingStormshell(final AmblingStormshell card) {
super(card);
}
@Override
public AmblingStormshell copy() {
return new AmblingStormshell(this);
}
}

View file

@ -29,6 +29,7 @@ public final class TarkirDragonstorm extends ExpansionSet {
cards.add(new SetCardInfo("Aegis Sculptor", 35, Rarity.UNCOMMON, mage.cards.a.AegisSculptor.class));
cards.add(new SetCardInfo("Agent of Kotis", 36, Rarity.COMMON, mage.cards.a.AgentOfKotis.class));
cards.add(new SetCardInfo("Alesha's Legacy", 72, Rarity.COMMON, mage.cards.a.AleshasLegacy.class));
cards.add(new SetCardInfo("Ambling Stormshell", 37, Rarity.RARE, mage.cards.a.AmblingStormshell.class));
cards.add(new SetCardInfo("Anafenza, Unyielding Lineage", 2, Rarity.RARE, mage.cards.a.AnafenzaUnyieldingLineage.class));
cards.add(new SetCardInfo("Attuned Hunter", 135, Rarity.UNCOMMON, mage.cards.a.AttunedHunter.class));
cards.add(new SetCardInfo("Auroral Procession", 169, Rarity.UNCOMMON, mage.cards.a.AuroralProcession.class));