Skip to content

Commit

Permalink
Reset the old HP method on PlayerSAO::setHP
Browse files Browse the repository at this point in the history
  • Loading branch information
nerzhul committed Mar 19, 2015
1 parent 538036d commit 2676d28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/content_sao.cpp
Expand Up @@ -1072,6 +1072,10 @@ void PlayerSAO::setHP(s16 hp)
else if (hp > PLAYER_MAX_HP)
hp = PLAYER_MAX_HP;

if(hp < oldhp && g_settings->getBool("enable_damage") == false) {
return;
}

m_player->hp = hp;

if (oldhp > hp)
Expand Down

0 comments on commit 2676d28

Please sign in to comment.