- Life Gain can't be replaced when the player can't gain life because of a static ability.

This commit is contained in:
Sloth
2015-07-13 21:31:37 +00:00
parent e8315eebfc
commit f37c8b93be

View File

@@ -379,14 +379,16 @@ public class Player extends GameEntity implements Comparable<Player> {
repParams.put("Affected", this);
repParams.put("LifeGained", toGain);
repParams.put("Source", source);
if (!canGainLife()) {
return false;
}
if (game.getReplacementHandler().run(repParams) != ReplacementResult.NotReplaced) {
return false;
}
boolean newLifeSet = false;
if (!canGainLife()) {
return false;
}
final int lifeGain = toGain;
if (lifeGain > 0) {