mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Update UnitMethods.h (#200)
This commit is contained in:
@@ -139,7 +139,7 @@ namespace LuaUnit
|
|||||||
*/
|
*/
|
||||||
int IsRooted(lua_State* L, Unit* unit)
|
int IsRooted(lua_State* L, Unit* unit)
|
||||||
{
|
{
|
||||||
Eluna::Push(L, unit->isInRoots() || unit->HasUnitMovementFlag(MOVEMENTFLAG_ROOT));
|
Eluna::Push(L, unit->HasRootAura() || unit->HasUnitMovementFlag(MOVEMENTFLAG_ROOT));
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user