mirror of
https://github.com/correl/mage.git
synced 2024-12-27 03:00:13 +00:00
[KHM] Implemented Elven Ambush
This commit is contained in:
parent
384ff2e7ac
commit
992a67611f
2 changed files with 42 additions and 0 deletions
41
Mage.Sets/src/mage/cards/e/ElvenAmbush.java
Normal file
41
Mage.Sets/src/mage/cards/e/ElvenAmbush.java
Normal file
|
@ -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);
|
||||
}
|
||||
}
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue