mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 15:58:36 +00:00
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]
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user