Core/Units: Remove unused argument from Unit::SetRooted
Port From (https://github.com/TrinityCore/TrinityCore/commit/88d878375899769a894fd7edf31d5386effcd6c5)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user