From ba09f43f56b9b5c3fb006cc281a189eddbbcd3d3 Mon Sep 17 00:00:00 2001 From: Plopman Date: Wed, 3 Jul 2013 21:20:57 +0200 Subject: [PATCH] Fixed pay life cost --- Mage/src/mage/abilities/costs/common/PayLifeCost.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Mage/src/mage/abilities/costs/common/PayLifeCost.java b/Mage/src/mage/abilities/costs/common/PayLifeCost.java index 7c7c5e7d4b0..c495a2473f9 100644 --- a/Mage/src/mage/abilities/costs/common/PayLifeCost.java +++ b/Mage/src/mage/abilities/costs/common/PayLifeCost.java @@ -54,10 +54,14 @@ public class PayLifeCost extends CostImpl { @Override public boolean canPay(UUID sourceId, UUID controllerId, Game game) { + //118.4. If a cost or effect allows a player to pay an amount of life greater than 0, + //the player may do so only if his or her life total is greater than or equal to the + //amount of the payment. If a player pays life, the payment is subtracted from his or + //her life total; in other words, the player loses that much life. (Players can always pay 0 life.) if (amount > 0 && !game.getPlayer(controllerId).canPayLifeCost()) { return false; } - return game.getPlayer(controllerId).getLife() > amount; + return game.getPlayer(controllerId).getLife() >= amount || amount == 0; } @Override