mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-11 15:58:36 +00:00
[Bug Fix] Fix ScaleNPC() in Perl (#4196)
# Notes - We were not passing `override_special_abilities` in the right parameter slot. - Default `always_scale` to `true` when using the Perl/Lua method.
This commit is contained in:
+2
-2
@@ -758,12 +758,12 @@ void Perl_NPC_SetLDoNTrapDetected(NPC* self, bool is_detected)
|
||||
|
||||
void Perl_NPC_ScaleNPC(NPC* self, uint8 npc_level)
|
||||
{
|
||||
return self->ScaleNPC(npc_level);
|
||||
self->ScaleNPC(npc_level, true);
|
||||
}
|
||||
|
||||
void Perl_NPC_ScaleNPC(NPC* self, uint8 npc_level, bool override_special_abilities)
|
||||
{
|
||||
return self->ScaleNPC(npc_level, override_special_abilities);
|
||||
self->ScaleNPC(npc_level, true, override_special_abilities);
|
||||
}
|
||||
|
||||
bool Perl_NPC_IsUnderwaterOnly(NPC* self) // @categories Script Utility
|
||||
|
||||
Reference in New Issue
Block a user