Skip to content

Commit

Permalink
Update UnitMethods.h (azerothcore#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kitzunu authored Dec 1, 2024
1 parent ec0dbf7 commit 53c9556
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LuaEngine/UnitMethods.h
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ namespace LuaUnit
*/
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;
}
Expand Down

0 comments on commit 53c9556

Please sign in to comment.