Update UnitMethods.h (#200)

This commit is contained in:
Kitzunu
2024-12-01 14:20:28 +01:00
committed by GitHub
parent ec0dbf76f3
commit 53c9556c36

View File

@@ -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;
} }