Fix Beacon of Immortality: use target player's current life total instead of starting life total.

This commit is contained in:
LoneFox 2015-08-16 22:22:31 +03:00
parent 40d2eabedb
commit 60bc09ca4f

View file

@ -87,9 +87,9 @@ class BeaconOfImmortalityEffect extends OneShotEffect {
public boolean apply(Game game, Ability source) {
Player player = game.getPlayer(source.getFirstTarget());
if (player != null) {
int amount = game.getLife();
int amount = player.getLife();
if (amount < 0) {
player.loseLife(amount, game);
player.loseLife(-amount, game);
return true;
}
if (amount > 0) {