diff --git a/Mage.Sets/src/mage/cards/e/ElvenAmbush.java b/Mage.Sets/src/mage/cards/e/ElvenAmbush.java new file mode 100644 index 0000000000..0b07361016 --- /dev/null +++ b/Mage.Sets/src/mage/cards/e/ElvenAmbush.java @@ -0,0 +1,41 @@ +package mage.cards.e; + +import java.util.UUID; + +import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount; +import mage.abilities.effects.common.CreateTokenEffect; +import mage.cards.CardImpl; +import mage.cards.CardSetInfo; +import mage.constants.CardType; +import mage.constants.SubType; +import mage.filter.common.FilterControlledPermanent; +import mage.game.permanent.token.ElfToken; + +/** + * + * @author weirddan455 + */ +public final class ElvenAmbush extends CardImpl { + + private static final FilterControlledPermanent filter = new FilterControlledPermanent("Elf you control"); + + static { + filter.add(SubType.ELF.getPredicate()); + } + + public ElvenAmbush(UUID ownerId, CardSetInfo setInfo) { + super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{G}"); + + // Create a 1/1 green Elf Warrior creature token for each Elf you control. + this.getSpellAbility().addEffect(new CreateTokenEffect(new ElfToken(), new PermanentsOnBattlefieldCount(filter))); + } + + private ElvenAmbush(final ElvenAmbush card) { + super(card); + } + + @Override + public ElvenAmbush copy() { + return new ElvenAmbush(this); + } +} diff --git a/Mage.Sets/src/mage/sets/Kaldheim.java b/Mage.Sets/src/mage/sets/Kaldheim.java index 29f41c59f8..732f60a2c6 100644 --- a/Mage.Sets/src/mage/sets/Kaldheim.java +++ b/Mage.Sets/src/mage/sets/Kaldheim.java @@ -32,6 +32,7 @@ public final class Kaldheim extends ExpansionSet { cards.add(new SetCardInfo("Blightstep Pathway", 252, Rarity.RARE, mage.cards.b.BlightstepPathway.class)); cards.add(new SetCardInfo("Canopy Tactician", 378, Rarity.RARE, mage.cards.c.CanopyTactician.class)); cards.add(new SetCardInfo("Darkbore Pathway", 254, Rarity.RARE, mage.cards.d.DarkborePathway.class)); + cards.add(new SetCardInfo("Elven Ambush", 391, Rarity.UNCOMMON, mage.cards.e.ElvenAmbush.class)); cards.add(new SetCardInfo("Hengegate Pathway", 260, Rarity.RARE, mage.cards.h.HengegatePathway.class)); cards.add(new SetCardInfo("Showdown of the Skalds", 229, Rarity.RARE, mage.cards.s.ShowdownOfTheSkalds.class)); }