From 4f8fe8c510d552b2640f92472149501df6add0e3 Mon Sep 17 00:00:00 2001 From: LevelX2 Date: Fri, 24 May 2013 14:49:47 +0200 Subject: [PATCH] Fixed a bug that the event LIFE_GAINED event did not include the correct amount of life, if replacement effects had changed that amount. --- Mage/src/mage/players/PlayerImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Mage/src/mage/players/PlayerImpl.java b/Mage/src/mage/players/PlayerImpl.java index 0bba48e89e..d056f1f118 100644 --- a/Mage/src/mage/players/PlayerImpl.java +++ b/Mage/src/mage/players/PlayerImpl.java @@ -1049,8 +1049,8 @@ public abstract class PlayerImpl> implements Player, Ser GameEvent event = new GameEvent(GameEvent.EventType.GAIN_LIFE, playerId, playerId, playerId, amount, false); if (!game.replaceEvent(event)) { this.life += event.getAmount(); - game.fireEvent(GameEvent.getEvent(GameEvent.EventType.GAINED_LIFE, playerId, playerId, playerId, amount)); - return amount; + game.fireEvent(GameEvent.getEvent(GameEvent.EventType.GAINED_LIFE, playerId, playerId, playerId, event.getAmount())); + return event.getAmount(); } return 0; }