Skip to content
Snippets Groups Projects
Commit 2676d289 authored by Loïc Blot's avatar Loïc Blot
Browse files

Reset the old HP method on PlayerSAO::setHP

parent 538036d0
No related branches found
No related tags found
No related merge requests found
......@@ -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% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment