fixed instances of life gain being life loss with negative numbers (fixes #5149)

This commit is contained in:
Evan Kranzler 2018-07-14 16:50:44 -04:00
parent 98793e4511
commit c743906557

View file

@ -1888,7 +1888,7 @@ public abstract class PlayerImpl implements Player, Serializable {
@Override
public int gainLife(int amount, Game game, UUID sourceId) {
if (!canGainLife || amount == 0) {
if (!canGainLife || amount <= 0) {
return 0;
}
GameEvent event = new GameEvent(GameEvent.EventType.GAIN_LIFE, playerId, playerId, playerId, amount, false);