mirror of
https://github.com/correl/mage.git
synced 2024-11-15 11:09:30 +00:00
[C21] Implemented Essence Pulse
This commit is contained in:
parent
eefa9dc8cf
commit
d0d152ec44
2 changed files with 42 additions and 0 deletions
41
Mage.Sets/src/mage/cards/e/EssencePulse.java
Normal file
41
Mage.Sets/src/mage/cards/e/EssencePulse.java
Normal file
|
@ -0,0 +1,41 @@
|
|||
package mage.cards.e;
|
||||
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.MultipliedValue;
|
||||
import mage.abilities.dynamicvalue.common.ControllerGotLifeCount;
|
||||
import mage.abilities.effects.common.GainLifeEffect;
|
||||
import mage.abilities.effects.common.continuous.BoostAllEffect;
|
||||
import mage.cards.CardImpl;
|
||||
import mage.cards.CardSetInfo;
|
||||
import mage.constants.CardType;
|
||||
import mage.constants.Duration;
|
||||
|
||||
import java.util.UUID;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class EssencePulse extends CardImpl {
|
||||
|
||||
private static final DynamicValue xValue = new MultipliedValue(ControllerGotLifeCount.instance, -1);
|
||||
|
||||
public EssencePulse(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{B}");
|
||||
|
||||
// You gain 2 life. Each creature gets -X/-X until end of turn, where X is the amount of life you gained this turn.
|
||||
this.getSpellAbility().addEffect(new GainLifeEffect(2));
|
||||
this.getSpellAbility().addEffect(new BoostAllEffect(
|
||||
xValue, xValue, Duration.EndOfTurn
|
||||
).setText("Each creature gets -X/-X until end of turn, where X is the amount of life you gained this turn"));
|
||||
this.getSpellAbility().addHint(ControllerGotLifeCount.getHint());
|
||||
}
|
||||
|
||||
private EssencePulse(final EssencePulse card) {
|
||||
super(card);
|
||||
}
|
||||
|
||||
@Override
|
||||
public EssencePulse copy() {
|
||||
return new EssencePulse(this);
|
||||
}
|
||||
}
|
|
@ -87,6 +87,7 @@ public final class Commander2021Edition extends ExpansionSet {
|
|||
cards.add(new SetCardInfo("Elite Scaleguard", 91, Rarity.UNCOMMON, mage.cards.e.EliteScaleguard.class));
|
||||
cards.add(new SetCardInfo("Epic Experiment", 216, Rarity.MYTHIC, mage.cards.e.EpicExperiment.class));
|
||||
cards.add(new SetCardInfo("Erratic Cyclops", 166, Rarity.RARE, mage.cards.e.ErraticCyclops.class));
|
||||
cards.add(new SetCardInfo("Essence Pulse", 39, Rarity.RARE, mage.cards.e.EssencePulse.class));
|
||||
cards.add(new SetCardInfo("Etali, Primal Storm", 167, Rarity.RARE, mage.cards.e.EtaliPrimalStorm.class));
|
||||
cards.add(new SetCardInfo("Excavation Technique", 16, Rarity.RARE, mage.cards.e.ExcavationTechnique.class));
|
||||
cards.add(new SetCardInfo("Ezuri's Predation", 188, Rarity.RARE, mage.cards.e.EzurisPredation.class));
|
||||
|
|
Loading…
Reference in a new issue