fix(Script): Fix npc following player after starting duel (#20161)
* fix(Script): Changed npc move script Death Knight Initiate (id: 28406) was not turning to face the player after they engaged a duel instead the npc followed the player wherever they went. Change was to remove script line for follow and replace with SetFacingToObject and specify the player as the object. Closes AzerothCore issue #20108 * fix(script): Fix npc following player whitespace issue Attempt to fix code styling fail on whtiespace * fix(script): Fix npc following player another whitespace issue Found more whitespace that was made by the fix to previous whitespace
This commit is contained in:
parent
31cb7579e0
commit
6ef16f18bb
1 changed files with 1 additions and 1 deletions
|
|
@ -289,7 +289,7 @@ public:
|
|||
_duelInProgress = true;
|
||||
|
||||
timer = 600000; // clear playerGUIDs after 10 minutes if no one initiates a duel
|
||||
me->GetMotionMaster()->MoveFollow(caster, 2.0f, 0.0f);
|
||||
me->SetFacingToObject(caster);
|
||||
|
||||
events.ScheduleEvent(EVENT_SPEAK, 3s);
|
||||
events.ScheduleEvent(EVENT_SPEAK + 1, 7s);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue