forked from External/mage
41 lines
1.3 KiB
Java
41 lines
1.3 KiB
Java
|
|
package mage.cards.e;
|
|
|
|
import java.util.UUID;
|
|
import mage.abilities.Mode;
|
|
import mage.abilities.dynamicvalue.common.ManacostVariableValue;
|
|
import mage.abilities.effects.common.DamageTargetEffect;
|
|
import mage.abilities.effects.common.GainLifeTargetEffect;
|
|
import mage.cards.CardImpl;
|
|
import mage.cards.CardSetInfo;
|
|
import mage.constants.CardType;
|
|
import mage.target.TargetPlayer;
|
|
import mage.target.common.TargetPlayerOrPlaneswalker;
|
|
|
|
/**
|
|
*
|
|
* @author TheElk801
|
|
*/
|
|
public final class EnergyBolt extends CardImpl {
|
|
|
|
public EnergyBolt(UUID ownerId, CardSetInfo setInfo) {
|
|
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{X}{R}{W}");
|
|
|
|
// Choose one - Energy Bolt deals X damage to target player; or target player gains X life.
|
|
this.getSpellAbility().addEffect(new DamageTargetEffect(new ManacostVariableValue()));
|
|
this.getSpellAbility().addTarget(new TargetPlayerOrPlaneswalker());
|
|
Mode mode = new Mode();
|
|
mode.addEffect(new GainLifeTargetEffect(new ManacostVariableValue()));
|
|
mode.addTarget(new TargetPlayer());
|
|
this.getSpellAbility().addMode(mode);
|
|
}
|
|
|
|
public EnergyBolt(final EnergyBolt card) {
|
|
super(card);
|
|
}
|
|
|
|
@Override
|
|
public EnergyBolt copy() {
|
|
return new EnergyBolt(this);
|
|
}
|
|
}
|