* Profane Command - Fixed that the 3rd ability applies -X instead of +X to target creature.

This commit is contained in:
LevelX2 2015-01-08 16:49:06 +01:00
parent 59f232fece
commit 3b30d7eaca

View file

@ -32,6 +32,7 @@ import mage.abilities.Ability;
import mage.abilities.Mode;
import mage.abilities.dynamicvalue.DynamicValue;
import mage.abilities.dynamicvalue.common.ManacostVariableValue;
import mage.abilities.dynamicvalue.common.SignInversionDynamicValue;
import mage.abilities.effects.Effect;
import mage.abilities.effects.common.LoseLifeTargetEffect;
import mage.abilities.effects.common.ReturnFromGraveyardToBattlefieldTargetEffect;
@ -79,8 +80,9 @@ public class ProfaneCommand extends CardImpl {
this.getSpellAbility().addMode(mode);
// * Target creature gets -X/-X until end of turn.
DynamicValue minusValue = new SignInversionDynamicValue(xValue);
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());
this.getSpellAbility().addMode(mode);