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:
Akkadius 2019-11-09 16:19:45 -06:00
parent 7de655ba76
commit c646942ed1

View File

@ -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) {