Add ScaleNPC() to Perl and Lua. (#1238)

This commit is contained in:
Alex
2021-02-09 00:08:07 -05:00
committed by GitHub
parent f2b67ae969
commit 8f89f38f5c
7 changed files with 45 additions and 1 deletions
+8
View File
@@ -3329,3 +3329,11 @@ void NPC::RecalculateSkills()
}
}
}
void NPC::ScaleNPC(uint8 npc_level) {
if (GetLevel() != npc_level) {
SetLevel(npc_level);
}
npc_scale_manager->ResetNPCScaling(this);
npc_scale_manager->ScaleNPC(this);
}