mirror of
https://github.com/correl/mage.git
synced 2024-12-26 19:16:54 +00:00
Fix Beacon of Immortality: use target player's current life total instead of starting life total.
This commit is contained in:
parent
40d2eabedb
commit
60bc09ca4f
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue