* DreadshipReef - Fixed that the 3rd ability did not create mana (fixes #3223).

This commit is contained in:
LevelX2 2017-04-25 23:27:24 +02:00
parent 85e44017ea
commit 7e9d4ab515

View file

@ -30,6 +30,7 @@ package mage.abilities.costs;
import java.util.UUID; import java.util.UUID;
import mage.abilities.Ability; import mage.abilities.Ability;
import mage.abilities.keyword.FlashbackAbility; import mage.abilities.keyword.FlashbackAbility;
import mage.abilities.mana.ManaAbility;
import mage.game.Game; import mage.game.Game;
import mage.game.stack.StackObject; import mage.game.stack.StackObject;
import mage.players.Player; import mage.players.Player;
@ -171,7 +172,9 @@ public abstract class VariableCostImpl implements Cost, VariableCost {
Player controller = game.getPlayer(source.getControllerId()); Player controller = game.getPlayer(source.getControllerId());
StackObject stackObject = game.getStack().getStackObject(source.getId()); StackObject stackObject = game.getStack().getStackObject(source.getId());
if (controller != null 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), xValue = controller.announceXCost(getMinValue(source, game), getMaxValue(source, game),
"Announce the number of " + actionText, game, source, this); "Announce the number of " + actionText, game, source, this);
} }