* 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.

This commit is contained in:
LevelX2 2014-04-14 17:32:55 +02:00
parent df295cbc12
commit cf4913ae96

View file

@ -47,6 +47,7 @@ import mage.abilities.SpellAbility;
import mage.abilities.TriggeredAbility; import mage.abilities.TriggeredAbility;
import mage.abilities.costs.Cost; import mage.abilities.costs.Cost;
import mage.abilities.costs.VariableCost; import mage.abilities.costs.VariableCost;
import mage.abilities.costs.common.PayLifeCost;
import mage.abilities.costs.common.SacrificeSourceCost; import mage.abilities.costs.common.SacrificeSourceCost;
import mage.abilities.costs.common.TapSourceCost; import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.costs.mana.ManaCost; import mage.abilities.costs.mana.ManaCost;
@ -864,7 +865,7 @@ public class HumanPlayer extends PlayerImpl<HumanPlayer> {
return true; return true;
} }
for(Cost cost : ability.getCosts() ) { 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 // if cost exists that have to be paid, pick ability dialog can be suppressed
return true; return true;
} }