mirror of
https://github.com/correl/mage.git
synced 2025-01-11 19:13:02 +00: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.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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue