Skip to content
Permalink
Browse files

Reset the old HP method on PlayerSAO::setHP

  • Loading branch information...
nerzhul committed Mar 18, 2015
1 parent 538036d commit 2676d289d9ac46a3145f3740c75e5078480ff858
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/content_sao.cpp
@@ -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)

0 comments on commit 2676d28

Please sign in to comment.
You can’t perform that action at this time.