mirror of
https://github.com/correl/mage.git
synced 2024-12-27 03:00:13 +00:00
Merge pull request #7256 from weirddan455/elven-ambush
[KHM] Implemented Elven Ambush
This commit is contained in:
commit
bf7f9931ee
3 changed files with 56 additions and 2 deletions
47
Mage.Sets/src/mage/cards/e/ElvenAmbush.java
Normal file
47
Mage.Sets/src/mage/cards/e/ElvenAmbush.java
Normal file
|
@ -0,0 +1,47 @@
|
|||
package mage.cards.e;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.hint.ValueHint;
|
||||
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("Elves you control");
|
||||
|
||||
static {
|
||||
filter.add(SubType.ELF.getPredicate());
|
||||
}
|
||||
|
||||
private static final DynamicValue elfCount = new PermanentsOnBattlefieldCount(filter);
|
||||
|
||||
public ElvenAmbush(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{3}{G}");
|
||||
|
||||
this.getSpellAbility().addHint(new ValueHint("Elves you control", elfCount));
|
||||
|
||||
// Create a 1/1 green Elf Warrior creature token for each Elf you control.
|
||||
this.getSpellAbility().addEffect(new CreateTokenEffect(new ElfToken(), elfCount));
|
||||
}
|
||||
|
||||
private ElvenAmbush(final ElvenAmbush card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public ElvenAmbush copy() {
|
||||
return new ElvenAmbush(this);
|
||||
}
|
||||
}
|
|
@ -2,8 +2,11 @@
|
|||
package mage.cards.e;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.PermanentsOnBattlefieldCount;
|
||||
import mage.abilities.effects.common.CreateTokenEffect;
|
||||
import mage.abilities.hint.ValueHint;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
|
@ -17,17 +20,20 @@ import mage.game.permanent.token.ElfToken;
|
|||
*/
|
||||
public final class ElvishPromenade extends CardImpl {
|
||||
|
||||
private static final FilterControlledPermanent filter = new FilterControlledPermanent("Elf you control");
|
||||
private static final FilterControlledPermanent filter = new FilterControlledPermanent("Elves you control");
|
||||
|
||||
static {
|
||||
filter.add(SubType.ELF.getPredicate());
|
||||
}
|
||||
|
||||
private static final DynamicValue elfCount = new PermanentsOnBattlefieldCount(filter);
|
||||
|
||||
public ElvishPromenade(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId,setInfo,new CardType[]{CardType.TRIBAL,CardType.SORCERY},"{3}{G}");
|
||||
this.subtype.add(SubType.ELF);
|
||||
this.getSpellAbility().addHint(new ValueHint("Elves you control", elfCount));
|
||||
|
||||
this.getSpellAbility().addEffect(new CreateTokenEffect(new ElfToken(), new PermanentsOnBattlefieldCount(filter)));
|
||||
this.getSpellAbility().addEffect(new CreateTokenEffect(new ElfToken(), elfCount));
|
||||
}
|
||||
|
||||
public ElvishPromenade(final ElvishPromenade card) {
|
||||
|
|
|
@ -34,6 +34,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("Gilded Assault Cart", 390, Rarity.UNCOMMON, mage.cards.g.GildedAssaultCart.class));
|
||||
cards.add(new SetCardInfo("Gladewalker Ritualist", 392, Rarity.UNCOMMON, mage.cards.g.GladewalkerRitualist.class));
|
||||
cards.add(new SetCardInfo("Hengegate Pathway", 260, Rarity.RARE, mage.cards.h.HengegatePathway.class));
|
||||
|
|
Loading…
Reference in a new issue