mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-15 18:10:26 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user