[EOE] Implement Plasma Bolt

This commit is contained in:
theelk801 2025-07-10 18:26:35 -04:00
parent ca66486f5b
commit 2ec468b52c
2 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1,43 @@
package mage.cards.p;
import mage.abilities.condition.common.VoidCondition;
import mage.abilities.decorator.ConditionalOneShotEffect;
import mage.abilities.effects.common.DamageTargetEffect;
import mage.cards.CardImpl;
import mage.cards.CardSetInfo;
import mage.constants.AbilityWord;
import mage.constants.CardType;
import mage.target.common.TargetAnyTarget;
import mage.watchers.common.VoidWatcher;
import java.util.UUID;
/**
* @author TheElk801
*/
public final class PlasmaBolt extends CardImpl {
public PlasmaBolt(UUID ownerId, CardSetInfo setInfo) {
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{R}");
// Plasma Bolt deals 2 damage to any target.
// Void -- Plasma Bolt deals 3 damage instead if a nonland permanent left the battlefield this turn or a spell was warped this turn.
this.getSpellAbility().addEffect(new ConditionalOneShotEffect(
new DamageTargetEffect(3), new DamageTargetEffect(2), VoidCondition.instance,
"{this} deals 2 damage to any target.<br>" + AbilityWord.VOID.formatWord() +
"{this} deals 3 damage instead if " + VoidCondition.instance
));
this.getSpellAbility().addTarget(new TargetAnyTarget());
this.getSpellAbility().addHint(VoidCondition.getHint());
this.getSpellAbility().addWatcher(new VoidWatcher());
}
private PlasmaBolt(final PlasmaBolt card) {
super(card);
}
@Override
public PlasmaBolt copy() {
return new PlasmaBolt(this);
}
}

View file

@ -123,6 +123,7 @@ public final class EdgeOfEternities extends ExpansionSet {
cards.add(new SetCardInfo("Plains", 267, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Plains", 268, Rarity.LAND, mage.cards.basiclands.Plains.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Plains", 367, Rarity.LAND, mage.cards.basiclands.Plains.class, FULL_ART_BFZ_VARIOUS));
cards.add(new SetCardInfo("Plasma Bolt", 152, Rarity.COMMON, mage.cards.p.PlasmaBolt.class));
cards.add(new SetCardInfo("Possibility Technician", 153, Rarity.RARE, mage.cards.p.PossibilityTechnician.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Possibility Technician", 295, Rarity.RARE, mage.cards.p.PossibilityTechnician.class, NON_FULL_USE_VARIOUS));
cards.add(new SetCardInfo("Ragost, Deft Gastronaut", 224, Rarity.RARE, mage.cards.r.RagostDeftGastronaut.class, NON_FULL_USE_VARIOUS));