From 604f397d65a60dd9470454187b9c55d220fbde5c Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Tue, 11 Mar 2014 16:43:21 +0100 Subject: [PATCH] * Stoic Rebuttal - Fixed cost reduction, that did not work in a proper way. --- .../sets/scarsofmirrodin/StoicRebuttal.java | 22 ++++++++++--------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/Mage.Sets/src/mage/sets/scarsofmirrodin/StoicRebuttal.java b/Mage.Sets/src/mage/sets/scarsofmirrodin/StoicRebuttal.java index 3481aab4ea..e459c8196c 100644 --- a/Mage.Sets/src/mage/sets/scarsofmirrodin/StoicRebuttal.java +++ b/Mage.Sets/src/mage/sets/scarsofmirrodin/StoicRebuttal.java @@ -30,14 +30,17 @@ package mage.sets.scarsofmirrodin; import mage.constants.CardType; import mage.constants.Rarity; -import mage.abilities.Ability; import mage.abilities.condition.common.MetalcraftCondition; import mage.abilities.effects.common.CounterTargetEffect; import mage.cards.CardImpl; -import mage.game.Game; import mage.target.TargetSpell; import java.util.UUID; +import mage.abilities.Ability; +import mage.abilities.common.SimpleStaticAbility; +import mage.abilities.effects.common.cost.SpellCostReductionSourceEffect; +import mage.constants.AbilityWord; +import mage.constants.Zone; /** * @author ayrat @@ -48,6 +51,13 @@ public class StoicRebuttal extends CardImpl { super(ownerId, 46, "Stoic Rebuttal", Rarity.COMMON, new CardType[]{CardType.INSTANT}, "{1}{U}{U}"); this.expansionSetCode = "SOM"; this.color.setBlue(true); + // Metalcraft - Stoic Rebuttal costs {1} less to cast if you control three or more artifacts. + Ability ability = new SimpleStaticAbility(Zone.STACK, new SpellCostReductionSourceEffect(1, MetalcraftCondition.getInstance())); + ability.setRuleAtTheTop(true); + ability.setAbilityWord(AbilityWord.METALCRAFT); + this.addAbility(ability); + + // Counter target spell. this.getSpellAbility().addTarget(new TargetSpell()); this.getSpellAbility().addEffect(new CounterTargetEffect()); } @@ -56,14 +66,6 @@ public class StoicRebuttal extends CardImpl { super(card); } - @Override - public void adjustCosts(Ability ability, Game game) { - if (MetalcraftCondition.getInstance().apply(game, ability)) { - ability.getManaCostsToPay().clear(); - ability.getManaCostsToPay().load("{U}{U}"); - } - } - @Override public StoicRebuttal copy() { return new StoicRebuttal(this);