Skip to content

Commit

Permalink
fix(Script): Fix npc following player after starting duel (azerothcor…
Browse files Browse the repository at this point in the history
…e#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 azerothcore#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
  • Loading branch information
ConorB1745 authored Oct 10, 2024
1 parent 31cb757 commit 6ef16f1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ class npc_death_knight_initiate : public CreatureScript
_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);
Expand Down

0 comments on commit 6ef16f1

Please sign in to comment.