- diff --git a/src/game/LuaEngine/LuaFunctions.cpp b/src/game/LuaEngine/LuaFunctions.cpp
- index 6729fea..cd2d047 100644
- --- a/src/game/LuaEngine/LuaFunctions.cpp
- +++ b/src/game/LuaEngine/LuaFunctions.cpp
- @@ -256,6 +256,7 @@ ElunaRegister<Unit> UnitMethods[] =
- {"SetPetGUID", &LuaUnit::SetPetGUID}, // :SetPetGUID(uint64 guid) - Sets the pet's guid
- // {"SetCritterGUID", &LuaUnit::SetCritterGUID}, // :SetCritterGUID(uint64 guid) - Sets the critter's guid
- {"SetWaterWalk", &LuaUnit::SetWaterWalk}, // :SetWaterWalk([enable]) - Sets WaterWalk on or off
- + {"SetStandState", &LuaUnit::SetStandState}, // :SetStandState(state)
- // Boolean
- {"IsAlive", &LuaUnit::IsAlive}, // :IsAlive()
- @@ -299,6 +300,7 @@ ElunaRegister<Unit> UnitMethods[] =
- // {"IsRooted", &LuaUnit::IsRooted}, // :IsRooted()
- {"IsFullHealth", &LuaUnit::IsFullHealth}, // :IsFullHealth() - Returns if the unit is full health
- {"HasAura", &LuaUnit::HasAura}, // :HasAura(spellId) - Returns true if the unit has the aura from the spell
- + {"IsStandState", &LuaUnit::IsStandState}, // :IsStandState()
- // Other
- {"RegisterEvent", &LuaUnit::RegisterEvent}, // :RegisterEvent(function, delay, calls)
- diff --git a/src/game/LuaEngine/UnitMethods.h b/src/game/LuaEngine/UnitMethods.h
- index 0e08cd8..7d77f06 100644
- --- a/src/game/LuaEngine/UnitMethods.h
- +++ b/src/game/LuaEngine/UnitMethods.h
- @@ -1030,6 +1030,13 @@ namespace LuaUnit
- unit->SetWaterWalk(enable);
- return 0;
- }
- +
- + int SetStandState(lua_State* L, Unit* unit)
- + {
- + uint8 state = sEluna.CHECK_ULONG(L, 1);
- + unit->SetStandState(state);
- + return 0;
- + }
- int IsAlive(lua_State* L, Unit* unit)
- {
- @@ -1263,6 +1270,12 @@ namespace LuaUnit
- return 1;
- }
- + int IsStandState(lua_State* L, Unit* unit)
- + {
- + sEluna.Push(L, unit->IsStandState());
- + return 1;
- + }
- +
- int RemoveAura(lua_State* L, Unit* unit)
- {
- uint32 spellId = luaL_checkunsigned(L, 1);