diff --git a/src/content_sao.cpp b/src/content_sao.cpp index e58aa4b6..9fc61aea 100644 --- a/src/content_sao.cpp +++ b/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)