diff options
author | ccrs <ccrs@users.noreply.github.com> | 2017-08-12 01:40:25 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2020-08-23 00:45:46 +0200 |
commit | 97585597f0b1aff93873fe4d757556731bc0c1b2 (patch) | |
tree | fda9b11c6e7abb9e4d3a6108a09def640c3eb2af /src/server/game/Handlers/NPCHandler.cpp | |
parent | a86870622dd02921c4d2e32983a5a98ee91e5263 (diff) |
Core/Movement: waypoint movement (#20121)
Following the work done in #19361 this is the cleanup and improvement of the related logic of waypoint management.
Ref 28050f3 #18020
(taking the good parts and ignoring the incomplete work)
(cherry picked from commit 7fff83d67526efff63867d41b9e036a19a9287b3)
Diffstat (limited to 'src/server/game/Handlers/NPCHandler.cpp')
-rw-r--r-- | src/server/game/Handlers/NPCHandler.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server/game/Handlers/NPCHandler.cpp b/src/server/game/Handlers/NPCHandler.cpp index e5e5a8f97c3..16c6ca0b1bf 100644 --- a/src/server/game/Handlers/NPCHandler.cpp +++ b/src/server/game/Handlers/NPCHandler.cpp @@ -44,6 +44,7 @@ #include "SpellInfo.h" #include "SpellMgr.h" #include "Trainer.h" +#include "World.h" #include "WorldPacket.h" enum class StableResult : uint8 @@ -167,9 +168,8 @@ void WorldSession::HandleGossipHelloOpcode(WorldPackets::NPC::Hello& packet) //if (GetPlayer()->HasUnitState(UNIT_STATE_DIED)) // GetPlayer()->RemoveAurasByType(SPELL_AURA_FEIGN_DEATH); - // and if he has pure gossip or is banker and moves or is tabard designer? - //if (unit->IsArmorer() || unit->IsCivilian() || unit->IsQuestGiver() || unit->IsServiceProvider() || unit->IsGuard()) - unit->StopMoving(); + // Stop the npc if moving + unit->PauseMovement(sWorld->getIntConfig(CONFIG_CREATURE_STOP_FOR_PLAYER)); // If spiritguide, no need for gossip menu, just put player into resurrect queue if (unit->IsSpiritGuide()) |