mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Fix AddThreat typos
This commit is contained in:
@@ -2491,12 +2491,12 @@ namespace LuaUnit
|
|||||||
{
|
{
|
||||||
Unit* victim = Eluna::CHECKOBJ<Unit>(L, 2);
|
Unit* victim = Eluna::CHECKOBJ<Unit>(L, 2);
|
||||||
float threat = Eluna::CHECKVAL<float>(L, 3, true);
|
float threat = Eluna::CHECKVAL<float>(L, 3, true);
|
||||||
uint32 schoolMask = Eluna::CHECKVAL<uint32>(L, 3, 0);
|
uint32 schoolMask = Eluna::CHECKVAL<uint32>(L, 4, 0);
|
||||||
uint32 spell = Eluna::CHECKVAL<uint32>(L, 3, 0);
|
uint32 spell = Eluna::CHECKVAL<uint32>(L, 5, 0);
|
||||||
|
|
||||||
if (schoolMask > SPELL_SCHOOL_MASK_ALL)
|
if (schoolMask > SPELL_SCHOOL_MASK_ALL)
|
||||||
{
|
{
|
||||||
return luaL_argerror(L, 3, "valid SpellSchoolMask expected");
|
return luaL_argerror(L, 4, "valid SpellSchoolMask expected");
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef TRINITY
|
#ifdef TRINITY
|
||||||
|
|||||||
Reference in New Issue
Block a user