From c646942ed1bdb9db63c16fdd6a1bf2930968ded2 Mon Sep 17 00:00:00 2001 From: Akkadius Date: Sat, 9 Nov 2019 16:19:45 -0600 Subject: [PATCH] Make sure we check if the NPC is flagged as auto scaled before applying hp regen scaling instead of assuming from 0 on the stat alone [skip ci] --- zone/npc_scale_manager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/npc_scale_manager.cpp b/zone/npc_scale_manager.cpp index be9891e7f..ed65674fb 100644 --- a/zone/npc_scale_manager.cpp +++ b/zone/npc_scale_manager.cpp @@ -127,7 +127,7 @@ void NpcScaleManager::ScaleNPC(NPC *npc) npc->ModifyNPCStat("max_hit", std::to_string(max_dmg).c_str()); } - if (npc->GetHPRegen() == 0) { + if (npc->GetHPRegen() == 0 && is_auto_scaled) { npc->ModifyNPCStat("hp_regen", std::to_string(scale_data.hp_regen_rate).c_str()); } if (npc->GetAttackDelay() == 0) {