forked from External/mage
* Angel of Jubilation - Fixed that it did not only prevent life payment from casting spells or activating abilities (fixes #3663).
This commit is contained in:
parent
57de10d609
commit
ffa837ae95
14 changed files with 118 additions and 40 deletions
|
|
@ -40,7 +40,7 @@ public class PayLifeCost extends CostImpl {
|
|||
//life total; in other words, the player loses that much life. (Players can always pay 0 life.)
|
||||
int lifeToPayAmount = amount.calculate(game, ability, null);
|
||||
// Paying 0 life is not considered paying any life.
|
||||
if (lifeToPayAmount > 0 && !game.getPlayer(controllerId).canPayLifeCost()) {
|
||||
if (lifeToPayAmount > 0 && !game.getPlayer(controllerId).canPayLifeCost(ability)) {
|
||||
return false;
|
||||
}
|
||||
return game.getPlayer(controllerId).getLife() >= lifeToPayAmount || lifeToPayAmount == 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue