From 7e9d4ab515bbdcc67871fc23e834d4b661747d21 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Tue, 25 Apr 2017 23:27:24 +0200 Subject: [PATCH] * DreadshipReef - Fixed that the 3rd ability did not create mana (fixes #3223). --- .../src/main/java/mage/abilities/costs/VariableCostImpl.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Mage/src/main/java/mage/abilities/costs/VariableCostImpl.java b/Mage/src/main/java/mage/abilities/costs/VariableCostImpl.java index 83a785a8fa..aefaf6f526 100644 --- a/Mage/src/main/java/mage/abilities/costs/VariableCostImpl.java +++ b/Mage/src/main/java/mage/abilities/costs/VariableCostImpl.java @@ -30,6 +30,7 @@ package mage.abilities.costs; import java.util.UUID; import mage.abilities.Ability; import mage.abilities.keyword.FlashbackAbility; +import mage.abilities.mana.ManaAbility; import mage.game.Game; import mage.game.stack.StackObject; import mage.players.Player; @@ -171,7 +172,9 @@ public abstract class VariableCostImpl implements Cost, VariableCost { Player controller = game.getPlayer(source.getControllerId()); StackObject stackObject = game.getStack().getStackObject(source.getId()); if (controller != null - && (source instanceof FlashbackAbility || stackObject != null)) { + && (source instanceof ManaAbility + || source instanceof FlashbackAbility + || stackObject != null)) { xValue = controller.announceXCost(getMinValue(source, game), getMaxValue(source, game), "Announce the number of " + actionText, game, source, this); }