mage/Mage.Sets/src/mage/cards/j/JayasImmolatingInferno.java
Justin Herlehy 702756b4e7 [DOM] Implement Legendary Sorceries
Add: Target Any Target for damage spells
Add: Drudge Sentinel
Fix: Genesis Wave Filter
2018-04-08 18:37:11 -07:00

44 lines
1.5 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package mage.cards.j;
import java.util.UUID;
import mage.abilities.common.LegendarySpellAbility;
import mage.abilities.dynamicvalue.common.ManacostVariableValue;
import mage.abilities.effects.Effect;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.cards.Card;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.CardType;
import mage.constants.SuperType;
import mage.target.common.TargetAnyTarget;
/**
* @author JRHerlehy
* Created on 4/8/18.
*/
public class JayasImmolatingInferno extends CardImpl {
public JayasImmolatingInferno(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{X}{R}{R}");
this.addSuperType(SuperType.LEGENDARY);
// (You may cast a legendary sorcery only if you control a legendary creature or planeswalker.)
this.addAbility(new LegendarySpellAbility());
// Jayas Immolating Inferno deals X damage to each of up to three targets.
Effect effect = new DamageTargetEffect(new ManacostVariableValue());
effect.setText("{this} deals X damage to each of up to three targets");
this.getSpellAbility().addEffect(effect);
this.getSpellAbility().addTarget(new TargetAnyTarget(1, 3));
}
public JayasImmolatingInferno(final JayasImmolatingInferno card) {
super(card);
}
@Override
public JayasImmolatingInferno copy() {
return new JayasImmolatingInferno(this);
}
}