Skip to content

Commit 2676d28

Browse files
committedMar 19, 2015
Reset the old HP method on PlayerSAO::setHP
1 parent 538036d commit 2676d28

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed
 

Diff for: ‎src/content_sao.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -1072,6 +1072,10 @@ void PlayerSAO::setHP(s16 hp)
10721072
else if (hp > PLAYER_MAX_HP)
10731073
hp = PLAYER_MAX_HP;
10741074

1075+
if(hp < oldhp && g_settings->getBool("enable_damage") == false) {
1076+
return;
1077+
}
1078+
10751079
m_player->hp = hp;
10761080

10771081
if (oldhp > hp)

0 commit comments

Comments
 (0)