From cf4913ae967e6196c27ac6eaa063955d5bc2b087 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Mon, 14 Apr 2014 17:32:55 +0200 Subject: [PATCH] * If an abilit yhas only a pay life cost, the ability picker dialog is shown if the prefence option to ability picker for abilities without costs is activated. --- .../Mage.Player.Human/src/mage/player/human/HumanPlayer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Mage.Server.Plugins/Mage.Player.Human/src/mage/player/human/HumanPlayer.java b/Mage.Server.Plugins/Mage.Player.Human/src/mage/player/human/HumanPlayer.java index 7de3f097d1..161785ce21 100644 --- a/Mage.Server.Plugins/Mage.Player.Human/src/mage/player/human/HumanPlayer.java +++ b/Mage.Server.Plugins/Mage.Player.Human/src/mage/player/human/HumanPlayer.java @@ -47,6 +47,7 @@ import mage.abilities.SpellAbility; import mage.abilities.TriggeredAbility; import mage.abilities.costs.Cost; import mage.abilities.costs.VariableCost; +import mage.abilities.costs.common.PayLifeCost; import mage.abilities.costs.common.SacrificeSourceCost; import mage.abilities.costs.common.TapSourceCost; import mage.abilities.costs.mana.ManaCost; @@ -864,7 +865,7 @@ public class HumanPlayer extends PlayerImpl { return true; } for(Cost cost : ability.getCosts() ) { - if (!(cost instanceof TapSourceCost)) { + if (!(cost instanceof TapSourceCost) && !(cost instanceof PayLifeCost)) { // if cost exists that have to be paid, pick ability dialog can be suppressed return true; }