Core/Units: Remove unused argument from Unit::SetRooted

Port From (https://github.com/TrinityCore/TrinityCore/commit/88d878375899769a894fd7edf31d5386effcd6c5)
This commit is contained in:
Hondacrx
2025-12-08 14:10:01 -05:00
parent 1047cd825d
commit 2802504f76
+1 -4
View File
@@ -1551,9 +1551,7 @@ namespace Game.Entities
}
}
public void SetRooted(bool apply, bool packetOnly = false)
{
if (!packetOnly)
public void SetRooted(bool apply)
{
if (apply)
{
@@ -1566,7 +1564,6 @@ namespace Game.Entities
}
else
RemoveUnitMovementFlag(MovementFlag.Root);
}
Player playerMover = GetUnitBeingMoved()?.ToPlayer();// unit controlled by a player.
if (playerMover != null)