From f0dd7854d1ba4edd5e49fd9bdfd4b2d60775ff89 Mon Sep 17 00:00:00 2001 From: Evan Kranzler Date: Wed, 18 Sep 2019 08:11:17 -0400 Subject: [PATCH] fixed Irencrag Feat not adding mana --- Mage.Sets/src/mage/cards/i/IrencragFeat.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Mage.Sets/src/mage/cards/i/IrencragFeat.java b/Mage.Sets/src/mage/cards/i/IrencragFeat.java index 8ff350b5ea..022811c4af 100644 --- a/Mage.Sets/src/mage/cards/i/IrencragFeat.java +++ b/Mage.Sets/src/mage/cards/i/IrencragFeat.java @@ -1,8 +1,11 @@ package mage.cards.i; +import mage.Mana; import mage.abilities.Ability; import mage.abilities.effects.ContinuousRuleModifyingEffectImpl; +import mage.abilities.effects.Effect; import mage.abilities.effects.OneShotEffect; +import mage.abilities.effects.mana.BasicManaEffect; import mage.cards.CardImpl; import mage.cards.CardSetInfo; import mage.constants.CardType; @@ -38,6 +41,8 @@ public final class IrencragFeat extends CardImpl { class IrencragFeatEffect extends OneShotEffect { + private static final Effect effect = new BasicManaEffect(Mana.RedMana(7)); + IrencragFeatEffect() { super(Outcome.Benefit); staticText = "Add seven {R}. You can cast only one more spell this turn."; @@ -60,7 +65,7 @@ class IrencragFeatEffect extends OneShotEffect { } int spellsCast = watcher.getAmountOfSpellsPlayerCastOnCurrentTurn(source.getControllerId()); game.addEffect(new IrencragFeatCantCastEffect(spellsCast), source); - return true; + return effect.apply(game, source); } }