[FDN] Implement Infestation Sage

This commit is contained in:
theelk801 2024-11-02 10:42:09 -04:00
parent 9a08cf2739
commit ac015e5725
2 changed files with 40 additions and 0 deletions

View file

@ -0,0 +1,39 @@
package mage.cards.i;
import mage.MageInt;
import mage.abilities.common.DiesSourceTriggeredAbility;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.game.permanent.token.InsectBlackGreenFlyingToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class InfestationSage extends CardImpl {
public InfestationSage(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{B}");
this.subtype.add(SubType.ELF);
this.subtype.add(SubType.WARLOCK);
this.power = new MageInt(1);
this.toughness = new MageInt(1);
// When this creature dies, create a 1/1 black and green Insect creature token with flying.
this.addAbility(new DiesSourceTriggeredAbility(new CreateTokenEffect(new InsectBlackGreenFlyingToken())));
}
private InfestationSage(final InfestationSage card) {
super(card);
}
@Override
public InfestationSage copy() {
return new InfestationSage(this);
}
}

View file

@ -245,6 +245,7 @@ public final class Foundations extends ExpansionSet {
cards.add(new SetCardInfo("Imperious Perfect", 719, Rarity.UNCOMMON, mage.cards.i.ImperiousPerfect.class));
cards.add(new SetCardInfo("Imprisoned in the Moon", 156, Rarity.UNCOMMON, mage.cards.i.ImprisonedInTheMoon.class));
cards.add(new SetCardInfo("Incinerating Blast", 90, Rarity.COMMON, mage.cards.i.IncineratingBlast.class));
cards.add(new SetCardInfo("Infestation Sage", 64, Rarity.COMMON, mage.cards.i.InfestationSage.class));
cards.add(new SetCardInfo("Ingenious Leonin", 495, Rarity.UNCOMMON, mage.cards.i.IngeniousLeonin.class));
cards.add(new SetCardInfo("Inspiration from Beyond", 43, Rarity.UNCOMMON, mage.cards.i.InspirationFromBeyond.class));
cards.add(new SetCardInfo("Inspiring Call", 226, Rarity.UNCOMMON, mage.cards.i.InspiringCall.class));