[40K] Implemented Termagant Swarm

This commit is contained in:
Evan Kranzler 2022-09-15 21:50:05 -04:00
parent 95b2817ac8
commit 191ea321f6
2 changed files with 50 additions and 0 deletions

View file

@ -0,0 +1,49 @@
package mage.cards.t;
import mage.MageInt;
import mage.abilities.common.DiesSourceTriggeredAbility;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.SourcePermanentPowerCount;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.keyword.RavenousAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.game.permanent.token.TyranidToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class TermagantSwarm extends CardImpl {
private static final DynamicValue xValue = new SourcePermanentPowerCount(false);
public TermagantSwarm(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{X}{G}");
this.subtype.add(SubType.TYRANID);
this.power = new MageInt(0);
this.toughness = new MageInt(0);
// Ravenous
this.addAbility(new RavenousAbility());
// Death Frenzy -- When Termagant Swarm dies, create a number of 1/1 green Tyranid creature tokens equal to Termagant Swarm's power.
this.addAbility(new DiesSourceTriggeredAbility(
new CreateTokenEffect(new TyranidToken(), xValue)
.setText("create a number of 1/1 green Tyranid creature tokens equal to {this}'s power")
).withFlavorWord("Death Frenzy"));
}
private TermagantSwarm(final TermagantSwarm card) {
super(card);
}
@Override
public TermagantSwarm copy() {
return new TermagantSwarm(this);
}
}

View file

@ -110,6 +110,7 @@ public final class Warhammer40000 extends ExpansionSet {
cards.add(new SetCardInfo("Temple of Epiphany", 298, Rarity.RARE, mage.cards.t.TempleOfEpiphany.class));
cards.add(new SetCardInfo("Temple of Mystery", 299, Rarity.RARE, mage.cards.t.TempleOfMystery.class));
cards.add(new SetCardInfo("Temple of the False God", 300, Rarity.UNCOMMON, mage.cards.t.TempleOfTheFalseGod.class));
cards.add(new SetCardInfo("Termagant Swarm", 99, Rarity.RARE, mage.cards.t.TermagantSwarm.class));
cards.add(new SetCardInfo("Terramorphic Expanse", 301, Rarity.COMMON, mage.cards.t.TerramorphicExpanse.class));
cards.add(new SetCardInfo("Tervigon", 100, Rarity.RARE, mage.cards.t.Tervigon.class));
cards.add(new SetCardInfo("The Swarmlord", 4, Rarity.MYTHIC, mage.cards.t.TheSwarmlord.class));