mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
- Fixed #8898
This commit is contained in:
parent
7ea8357190
commit
ec607ae4c4
2 changed files with 10 additions and 8 deletions
|
@ -1,7 +1,5 @@
|
|||
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;
|
||||
|
@ -11,13 +9,16 @@ import mage.constants.CardType;
|
|||
import mage.constants.Duration;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.dynamicvalue.LockedInDynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.SignInversionDynamicValue;
|
||||
|
||||
/**
|
||||
* @author TheElk801
|
||||
*/
|
||||
public final class EssencePulse extends CardImpl {
|
||||
|
||||
private static final DynamicValue xValue = new MultipliedValue(ControllerGotLifeCount.instance, -1);
|
||||
// rule 608.2h
|
||||
private static final LockedInDynamicValue xValue = new LockedInDynamicValue(new SignInversionDynamicValue(ControllerGotLifeCount.instance));
|
||||
|
||||
public EssencePulse(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{B}");
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
|
||||
package mage.cards.p;
|
||||
|
||||
import java.util.UUID;
|
||||
import mage.abilities.dynamicvalue.DynamicValue;
|
||||
import mage.abilities.dynamicvalue.LockedInDynamicValue;
|
||||
import mage.abilities.dynamicvalue.common.DomainValue;
|
||||
import mage.abilities.dynamicvalue.common.SignInversionDynamicValue;
|
||||
import mage.abilities.effects.Effect;
|
||||
|
@ -16,15 +15,17 @@ import mage.constants.Duration;
|
|||
/**
|
||||
*
|
||||
* @author LoneFox
|
||||
|
||||
*
|
||||
*/
|
||||
public final class PlanarDespair extends CardImpl {
|
||||
|
||||
// rule 608.2h
|
||||
private static final LockedInDynamicValue dv = new LockedInDynamicValue(new SignInversionDynamicValue(DomainValue.REGULAR));
|
||||
|
||||
public PlanarDespair(UUID ownerId, CardSetInfo setInfo) {
|
||||
super(ownerId,setInfo,new CardType[]{CardType.SORCERY},"{3}{B}{B}");
|
||||
super(ownerId, setInfo, new CardType[]{CardType.SORCERY}, "{3}{B}{B}");
|
||||
|
||||
// Domain - All creatures get -1/-1 until end of turn for each basic land type among lands you control.
|
||||
DynamicValue dv = new SignInversionDynamicValue(DomainValue.REGULAR);
|
||||
Effect effect = new BoostAllEffect(dv, dv, Duration.EndOfTurn);
|
||||
effect.setText("<i>Domain</i> — All creatures get -1/-1 until end of turn for each basic land type among lands you control.");
|
||||
this.getSpellAbility().addEffect(effect);
|
||||
|
|
Loading…
Reference in a new issue