mirror of
https://github.com/correl/mage.git
synced 2024-12-26 11:09:27 +00:00
Add value hint to Elven Ambush and Elvish Promenade
This commit is contained in:
parent
992a67611f
commit
e9f2aa9cc0
2 changed files with 16 additions and 4 deletions
|
@ -2,8 +2,10 @@ 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 +19,21 @@ import mage.game.permanent.token.ElfToken;
|
|||
*/
|
||||
public final class ElvenAmbush 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 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(), new PermanentsOnBattlefieldCount(filter)));
|
||||
this.getSpellAbility().addEffect(new CreateTokenEffect(new ElfToken(), elfCount));
|
||||
}
|
||||
|
||||
private ElvenAmbush(final ElvenAmbush card) {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue