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