[MH2] implemented Flametongue Yearling

This commit is contained in:
Evan Kranzler 2021-05-21 07:27:34 -04:00
parent d1a798371c
commit 9317620b64
2 changed files with 61 additions and 0 deletions

View file

@ -0,0 +1,60 @@
package mage.cards.f;
import mage.MageInt;
import mage.abilities.Ability;
import mage.abilities.common.EntersBattlefieldAbility;
import mage.abilities.common.EntersBattlefieldTriggeredAbility;
import mage.abilities.costs.mana.GenericManaCost;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.MultikickerCount;
import mage.abilities.dynamicvalue.common.SourcePermanentPowerCount;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.abilities.effects.common.counter.AddCountersSourceEffect;
import mage.abilities.keyword.MultikickerAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SubType;
import mage.counters.CounterType;
import mage.target.common.TargetCreaturePermanent;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class FlametongueYearling extends CardImpl {
private static final DynamicValue xValue = new SourcePermanentPowerCount(false);
public FlametongueYearling(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.CREATURE}, "{R}{R}");
this.subtype.add(SubType.KAVU);
this.power = new MageInt(2);
this.toughness = new MageInt(1);
// Multikicker {2}
this.addAbility(new MultikickerAbility(new GenericManaCost(2)));
// Flametongue Yearling enters the battlefield with a +1/+1 counter on it for each time it was kicked.
this.addAbility(new EntersBattlefieldAbility(new AddCountersSourceEffect(
CounterType.P1P1.createInstance(0), MultikickerCount.instance, true
), "with a +1/+1 counter on it for each time it was kicked"));
// When Flametongue Yearling enters the battlefield, it deals damage equal to its power to target creature.
Ability ability = new EntersBattlefieldTriggeredAbility(new DamageTargetEffect(xValue)
.setText("it deals damage equal to its power to target creature"));
ability.addTarget(new TargetCreaturePermanent());
this.addAbility(ability);
}
private FlametongueYearling(final FlametongueYearling card) {
super(card);
}
@Override
public FlametongueYearling copy() {
return new FlametongueYearling(this);
}
}

View file

@ -32,6 +32,7 @@ public final class ModernHorizons2 extends ExpansionSet {
cards.add(new SetCardInfo("Cabal Coffers", 301, Rarity.MYTHIC, mage.cards.c.CabalCoffers.class));
cards.add(new SetCardInfo("Counterspell", 267, Rarity.UNCOMMON, mage.cards.c.Counterspell.class));
cards.add(new SetCardInfo("Diamond Lion", 225, Rarity.RARE, mage.cards.d.DiamondLion.class));
cards.add(new SetCardInfo("Flametongue Yearling", 125, Rarity.UNCOMMON, mage.cards.f.FlametongueYearling.class));
cards.add(new SetCardInfo("Marsh Flats", 248, Rarity.RARE, mage.cards.m.MarshFlats.class));
cards.add(new SetCardInfo("Misty Rainforest", 250, Rarity.RARE, mage.cards.m.MistyRainforest.class));
cards.add(new SetCardInfo("Rishadan Dockhand", 59, Rarity.RARE, mage.cards.r.RishadanDockhand.class));