mirror of
https://github.com/magefree/mage.git
synced 2025-12-30 15:32:08 -08:00
44 lines
1.5 KiB
Java
44 lines
1.5 KiB
Java
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());
|
||
|
||
// Jaya’s 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);
|
||
}
|
||
}
|