mirror of
https://github.com/magefree/mage.git
synced 2025-12-23 03:51:58 -08:00
* Profane Command - Fixed that the 3rd ability applies -X instead of +X to target creature.
This commit is contained in:
parent
59f232fece
commit
3b30d7eaca
1 changed files with 3 additions and 1 deletions
|
|
@ -32,6 +32,7 @@ import mage.abilities.Ability;
|
||||||
import mage.abilities.Mode;
|
import mage.abilities.Mode;
|
||||||
import mage.abilities.dynamicvalue.DynamicValue;
|
import mage.abilities.dynamicvalue.DynamicValue;
|
||||||
import mage.abilities.dynamicvalue.common.ManacostVariableValue;
|
import mage.abilities.dynamicvalue.common.ManacostVariableValue;
|
||||||
|
import mage.abilities.dynamicvalue.common.SignInversionDynamicValue;
|
||||||
import mage.abilities.effects.Effect;
|
import mage.abilities.effects.Effect;
|
||||||
import mage.abilities.effects.common.LoseLifeTargetEffect;
|
import mage.abilities.effects.common.LoseLifeTargetEffect;
|
||||||
import mage.abilities.effects.common.ReturnFromGraveyardToBattlefieldTargetEffect;
|
import mage.abilities.effects.common.ReturnFromGraveyardToBattlefieldTargetEffect;
|
||||||
|
|
@ -79,8 +80,9 @@ public class ProfaneCommand extends CardImpl {
|
||||||
this.getSpellAbility().addMode(mode);
|
this.getSpellAbility().addMode(mode);
|
||||||
|
|
||||||
// * Target creature gets -X/-X until end of turn.
|
// * Target creature gets -X/-X until end of turn.
|
||||||
|
DynamicValue minusValue = new SignInversionDynamicValue(xValue);
|
||||||
mode = new Mode();
|
mode = new Mode();
|
||||||
mode.getEffects().add(new BoostTargetEffect(xValue, xValue, Duration.EndOfTurn));
|
mode.getEffects().add(new BoostTargetEffect(minusValue, minusValue, Duration.EndOfTurn));
|
||||||
mode.getTargets().add(new TargetCreaturePermanent());
|
mode.getTargets().add(new TargetCreaturePermanent());
|
||||||
this.getSpellAbility().addMode(mode);
|
this.getSpellAbility().addMode(mode);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue