From 9dbe004bcc53bbdb2a9d3f57967dbc156f33fd6b Mon Sep 17 00:00:00 2001 From: ryancheung Date: Wed, 26 Jul 2017 23:09:31 +0300 Subject: [PATCH] Fix parameter order of method SetSkill for mangos --- PlayerMethods.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/PlayerMethods.h b/PlayerMethods.h index 73ac167..3c9678b 100644 --- a/PlayerMethods.h +++ b/PlayerMethods.h @@ -1694,7 +1694,11 @@ namespace LuaPlayer uint16 currVal = Eluna::CHECKVAL(L, 4); uint16 maxVal = Eluna::CHECKVAL(L, 5); +#ifdef TRINITY player->SetSkill(id, step, currVal, maxVal); +#else + player->SetSkill(id, currVal, maxVal, step); +#endif return 0; }