[FDN] Implement Elfsworn Giant

This commit is contained in:
theelk801 2024-10-31 22:13:35 -04:00
parent 05f5f846a7
commit d124c1a7ca
2 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,42 @@
package mage.cards.e;
import mage.MageInt;
import mage.abilities.common.LandfallAbility;
import mage.abilities.effects.common.CreateTokenEffect;
import mage.abilities.keyword.ReachAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.game.permanent.token.ElfWarriorToken;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class ElfswornGiant extends CardImpl {
public ElfswornGiant(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{3}{G}{G}");
this.subtype.add(SubType.GIANT);
this.power = new MageInt(5);
this.toughness = new MageInt(3);
// Reach
this.addAbility(ReachAbility.getInstance());
// Landfall -- Whenever a land you control enters, create a 1/1 green Elf Warrior creature token.
this.addAbility(new LandfallAbility(new CreateTokenEffect(new ElfWarriorToken())));
}
private ElfswornGiant(final ElfswornGiant card) {
super(card);
}
@Override
public ElfswornGiant copy() {
return new ElfswornGiant(this);
}
}

View file

@ -121,6 +121,7 @@ public final class Foundations extends ExpansionSet {
cards.add(new SetCardInfo("Eager Trufflesnout", 102, Rarity.UNCOMMON, mage.cards.e.EagerTrufflesnout.class));
cards.add(new SetCardInfo("Eaten Alive", 172, Rarity.COMMON, mage.cards.e.EatenAlive.class));
cards.add(new SetCardInfo("Eaten by Piranhas", 507, Rarity.UNCOMMON, mage.cards.e.EatenByPiranhas.class));
cards.add(new SetCardInfo("Elfsworn Giant", 103, Rarity.COMMON, mage.cards.e.ElfswornGiant.class));
cards.add(new SetCardInfo("Elspeth's Smite", 493, Rarity.UNCOMMON, mage.cards.e.ElspethsSmite.class));
cards.add(new SetCardInfo("Elvish Archdruid", 219, Rarity.RARE, mage.cards.e.ElvishArchdruid.class));
cards.add(new SetCardInfo("Elvish Regrower", 104, Rarity.UNCOMMON, mage.cards.e.ElvishRegrower.class));