diff --git a/Mage.Sets/src/mage/cards/t/TermagantSwarm.java b/Mage.Sets/src/mage/cards/t/TermagantSwarm.java new file mode 100644 index 0000000000..04ccc478d5 --- /dev/null +++ b/Mage.Sets/src/mage/cards/t/TermagantSwarm.java @@ -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); + } +} diff --git a/Mage.Sets/src/mage/sets/Warhammer40000.java b/Mage.Sets/src/mage/sets/Warhammer40000.java index 573cb1af68..691d413466 100644 --- a/Mage.Sets/src/mage/sets/Warhammer40000.java +++ b/Mage.Sets/src/mage/sets/Warhammer40000.java @@ -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));