From 3b30d7eaca7afdee7b96e143b39cb4be8c9d6a08 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Thu, 8 Jan 2015 16:49:06 +0100 Subject: [PATCH] * Profane Command - Fixed that the 3rd ability applies -X instead of +X to target creature. --- Mage.Sets/src/mage/sets/commander2014/ProfaneCommand.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/sets/commander2014/ProfaneCommand.java b/Mage.Sets/src/mage/sets/commander2014/ProfaneCommand.java index 339b7dec544..4ab9a402c91 100644 --- a/Mage.Sets/src/mage/sets/commander2014/ProfaneCommand.java +++ b/Mage.Sets/src/mage/sets/commander2014/ProfaneCommand.java @@ -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);