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

This commit is contained in:
Alex authored and GitHub committed 2021-02-08 23:08:07 -06:00
1 parent f2b67ae969
commit 8f89f38f5c
7 files changed
+45 -1

No files matched your search

+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);
}