Skip to content

Commit 3ac3c66

Browse files
committed
Use the correct root/unroot API function
1 parent a36de20 commit 3ac3c66

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

methods/TrinityCore/PlayerMethods.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2082,10 +2082,10 @@ namespace LuaPlayer
20822082
switch (pType)
20832083
{
20842084
case 1: // MOVE_ROOT
2085-
player->SetRooted(true);
2085+
player->SetControlled(true, UNIT_STATE_ROOT);
20862086
break;
20872087
case 2: // MOVE_UNROOT
2088-
player->SetRooted(false);
2088+
player->SetControlled(false, UNIT_STATE_ROOT);
20892089
break;
20902090
case 3: // MOVE_WATER_WALK
20912091
player->SetWaterWalking(true);

0 commit comments

Comments
 (0)