From 638c14109b6c610929fd7aa510173725a627fce7 Mon Sep 17 00:00:00 2001 From: Aldori Date: Wed, 8 Jul 2026 12:11:07 -0400 Subject: [PATCH] fix(PlayerMethods): corrected SetSkill argument order AzerothCore core expects: // Player.h void SetSkill(uint16 id, uint16 step, uint16 currVal, uint16 maxVal); // Player.cpp void Player::SetSkill(uint16 id, uint16 step, uint16 newVal, uint16 maxVal) But ALE was doing (incorrect): player->SetSkill(id, currVal, maxVal, step); --- src/LuaEngine/methods/PlayerMethods.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/LuaEngine/methods/PlayerMethods.h b/src/LuaEngine/methods/PlayerMethods.h index c39801fc98..f8862615a7 100644 --- a/src/LuaEngine/methods/PlayerMethods.h +++ b/src/LuaEngine/methods/PlayerMethods.h @@ -1881,7 +1881,7 @@ namespace LuaPlayer uint16 currVal = ALE::CHECKVAL(L, 4); uint16 maxVal = ALE::CHECKVAL(L, 5); - player->SetSkill(id, currVal, maxVal, step); + player->SetSkill(id, step, currVal, maxVal); return 0; }