mirror of
https://github.com/correl/mage.git
synced 2024-11-15 03:00:16 +00:00
Fix #6942
This commit is contained in:
parent
dbd09db223
commit
9355c8ace3
1 changed files with 2 additions and 2 deletions
|
@ -43,11 +43,11 @@ public class PayVariableLifeCost extends VariableCostImpl {
|
||||||
Player controller = game.getPlayer(source.getControllerId());
|
Player controller = game.getPlayer(source.getControllerId());
|
||||||
if (controller != null) {
|
if (controller != null) {
|
||||||
// Paying 0 life is not considered paying any life, so paying 0 is still allowed
|
// Paying 0 life is not considered paying any life, so paying 0 is still allowed
|
||||||
if (game.getPlayer(source.getControllerId()).canPayLifeCost(source)) {
|
if (controller.canPayLifeCost(source)) {
|
||||||
maxValue = controller.getLife();
|
maxValue = controller.getLife();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return maxValue;
|
return Math.max(0, maxValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue