mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-10 19:10:25 +00:00
Add ScaleNPC() to Perl and Lua. (#1238)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user