Ability picker is shown now for only one ability if preference setting is on and ability has no mana costs or is no play land ability.

This commit is contained in:
LevelX2 2014-05-30 20:24:00 +02:00
parent 1ae85dc1b4
commit 2b59a6faae

View file

@ -48,6 +48,7 @@ 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.RemoveCounterCost;
import mage.abilities.costs.common.SacrificeSourceCost;
import mage.abilities.costs.common.TapSourceCost;
import mage.abilities.costs.mana.ManaCost;
@ -877,14 +878,8 @@ public class HumanPlayer extends PlayerImpl<HumanPlayer> {
if (ability instanceof ManaAbility) {
return true;
}
for(Cost cost : ability.getCosts() ) {
if (!(cost instanceof TapSourceCost) && !(cost instanceof PayLifeCost)) {
// if cost exists that have to be paid, pick ability dialog can be suppressed
return true;
}
}
return false;
// if ability has no mana costs you have to pick it from ability picker
return !ability.getManaCostsToPay().isEmpty();
}
return true;
}