[VOW] Implemented Lantern Flare

This commit is contained in:
Evan Kranzler 2021-11-05 08:11:08 -04:00
parent 3c6eaf0965
commit fbb15a84c6
2 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,53 @@
package mage.cards.l;
import mage.abilities.Ability;
import mage.abilities.dynamicvalue.common.CreaturesYouControlCount;
import mage.abilities.dynamicvalue.common.ManacostVariableValue;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.abilities.effects.common.GainLifeEffect;
import mage.abilities.hint.common.CreaturesYouControlHint;
import mage.abilities.keyword.CleaveAbility;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.target.common.TargetCreatureOrPlaneswalker;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class LanternFlare extends CardImpl {
public LanternFlare(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.INSTANT}, "{1}{W}");
// Cleave {X}{R}{W}
Ability ability = new CleaveAbility(
this, new DamageTargetEffect(ManacostVariableValue.REGULAR), "{X}{R}{W}"
);
ability.addEffect(new GainLifeEffect(ManacostVariableValue.REGULAR));
ability.addTarget(new TargetCreatureOrPlaneswalker());
this.addAbility(ability);
// Lantern Flare deals X damage to target creature or planeswalker and you gain X life. [X is the number of creatures you control.]
this.getSpellAbility().addEffect(new DamageTargetEffect(
CreaturesYouControlCount.instance
).setText("deals X damage to target creature or planeswalker"));
this.getSpellAbility().addEffect(new GainLifeEffect(
CreaturesYouControlCount.instance,
"and you gain X life. [X is the number of creatures you control.]"
));
this.getSpellAbility().addTarget(new TargetCreatureOrPlaneswalker());
this.getSpellAbility().addHint(CreaturesYouControlHint.instance);
}
private LanternFlare(final LanternFlare card) {
super(card);
}
@Override
public LanternFlare copy() {
return new LanternFlare(this);
}
}

View file

@ -118,6 +118,7 @@ public final class InnistradCrimsonVow extends ExpansionSet {
cards.add(new SetCardInfo("Lambholt Raconteur", 167, Rarity.UNCOMMON, mage.cards.l.LambholtRaconteur.class));
cards.add(new SetCardInfo("Lambholt Ravager", 167, Rarity.UNCOMMON, mage.cards.l.LambholtRavager.class));
cards.add(new SetCardInfo("Lantern Bearer", 66, Rarity.COMMON, mage.cards.l.LanternBearer.class));
cards.add(new SetCardInfo("Lantern Flare", 23, Rarity.RARE, mage.cards.l.LanternFlare.class));
cards.add(new SetCardInfo("Lanterns' Lift", 66, Rarity.COMMON, mage.cards.l.LanternsLift.class));
cards.add(new SetCardInfo("Lunar Rejection", 67, Rarity.UNCOMMON, mage.cards.l.LunarRejection.class));
cards.add(new SetCardInfo("Manaform Hellkite", 170, Rarity.MYTHIC, mage.cards.m.ManaformHellkite.class));