From e3dad741a56b1011151c10003c466be417a2a168 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Mon, 27 Jul 2015 20:25:29 +0300 Subject: [PATCH] Fix AddThreat typos --- UnitMethods.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/UnitMethods.h b/UnitMethods.h index e1f19a7..8817cb4 100644 --- a/UnitMethods.h +++ b/UnitMethods.h @@ -2491,12 +2491,12 @@ namespace LuaUnit { Unit* victim = Eluna::CHECKOBJ(L, 2); float threat = Eluna::CHECKVAL(L, 3, true); - uint32 schoolMask = Eluna::CHECKVAL(L, 3, 0); - uint32 spell = Eluna::CHECKVAL(L, 3, 0); + uint32 schoolMask = Eluna::CHECKVAL(L, 4, 0); + uint32 spell = Eluna::CHECKVAL(L, 5, 0); if (schoolMask > SPELL_SCHOOL_MASK_ALL) { - return luaL_argerror(L, 3, "valid SpellSchoolMask expected"); + return luaL_argerror(L, 4, "valid SpellSchoolMask expected"); } #ifdef TRINITY