mirror of
https://github.com/correl/mage.git
synced 2025-01-12 19:25:44 +00:00
fixed instances of life gain being life loss with negative numbers (fixes #5149)
This commit is contained in:
parent
98793e4511
commit
c743906557
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue