Skip to content

Commit

Permalink
fixed instances of life gain being life loss with negative numbers (f…
Browse files Browse the repository at this point in the history
…ixes #5149)
  • Loading branch information
theelk801 committed Jul 14, 2018
1 parent 98793e4 commit c743906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mage/src/main/java/mage/players/PlayerImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -1888,7 +1888,7 @@ public int gainLife(int amount, Game game, Ability source) {

@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);
Expand Down

0 comments on commit c743906

Please sign in to comment.