mirror of
https://github.com/EQEmu/Server.git
synced 2025-12-13 02:11:30 +00:00
Make sure AC / Corrup and PhR do not auto scale unles auto scale criteria is met
This commit is contained in:
parent
660416065e
commit
882e3742d9
@ -45,7 +45,7 @@ void NpcScaleManager::ScaleNPC(NPC * npc)
|
||||
return;
|
||||
}
|
||||
|
||||
if (npc->GetAC() == 0) {
|
||||
if (npc->GetAC() == 0 && is_auto_scaled) {
|
||||
npc->ModifyNPCStat("ac", std::to_string(scale_data.ac).c_str());
|
||||
}
|
||||
if (npc->GetMaxHP() == 0) {
|
||||
@ -97,10 +97,10 @@ void NpcScaleManager::ScaleNPC(NPC * npc)
|
||||
if (npc->GetDR() == 0) {
|
||||
npc->ModifyNPCStat("dr", std::to_string(scale_data.disease_resist).c_str());
|
||||
}
|
||||
if (npc->GetCorrup() == 0) {
|
||||
if (npc->GetCorrup() == 0 && is_auto_scaled) {
|
||||
npc->ModifyNPCStat("cor", std::to_string(scale_data.corruption_resist).c_str());
|
||||
}
|
||||
if (npc->GetPhR() == 0) {
|
||||
if (npc->GetPhR() == 0 && is_auto_scaled) {
|
||||
npc->ModifyNPCStat("phr", std::to_string(scale_data.physical_resist).c_str());
|
||||
}
|
||||
if (npc->GetMinDMG() == 0 && npc->GetMaxDMG() == 0) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user