diff --git a/server/gameserver/creature.cc b/server/gameserver/creature.cc index 103dac6a..ae6c385a 100644 --- a/server/gameserver/creature.cc +++ b/server/gameserver/creature.cc @@ -1125,9 +1125,11 @@ void Creature::Initialize() SERVER_FRAME_RATE * mt::Param::s().nature_recover_hp_interval, [this] (int event, const a8::Args* args) mutable { - if (!dead) { - if (GetHP() + 1 < GetMaxHP()) { - + if (a8::TIMER_EXEC_EVENT == event) { + if (!dead) { + if (GetHP() + 1 < GetMaxHP()) { + AddHp(GetMaxHP() * mt::Param::s().nature_recover_hp_rate); + } } } },