mirror of
https://github.com/correl/mage.git
synced 2024-12-25 03:00:15 +00:00
* 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:
parent
df295cbc12
commit
cf4913ae96
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue