aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/CreatureAI.cpp
diff options
context:
space:
mode:
authorArtamedes <ownedned123@gmail.com>2019-09-05 02:37:44 -0400
committerShauren <shauren.trinity@gmail.com>2021-12-18 21:37:02 +0100
commit913f0903a3264f14ea44356bc86dade81348a546 (patch)
treeb38e06a7050b621c666f523053ab22695326ac90 /src/server/game/AI/CreatureAI.cpp
parent00ba5df52b4ae90f01c7177028dc9411f3632bb5 (diff)
Scripts/Outland: Fix npc_ancestral_wolf not starting waypoint (#23763)
* Scripts/Outlands: Fix npc_ancestral_wolf not starting waypoint, and also add a way to not follow owner automatically in CreatureAI::JustAppeared() for tempsummons * fix nopch (cherry picked from commit 0b3a9e2a2b2537e7224d103947ad6028c6d2e5fe)
Diffstat (limited to 'src/server/game/AI/CreatureAI.cpp')
-rw-r--r--src/server/game/AI/CreatureAI.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/AI/CreatureAI.cpp b/src/server/game/AI/CreatureAI.cpp
index 49ff7661302..b222d96985e 100644
--- a/src/server/game/AI/CreatureAI.cpp
+++ b/src/server/game/AI/CreatureAI.cpp
@@ -198,7 +198,7 @@ void CreatureAI::JustAppeared()
if (TempSummon* summon = me->ToTempSummon())
{
// Only apply this to specific types of summons
- if (!summon->GetVehicle() && ShouldFollowOnSpawn(summon->m_Properties))
+ if (!summon->GetVehicle() && ShouldFollowOnSpawn(summon->m_Properties) && summon->CanFollowOwner())
{
if (Unit* owner = summon->GetCharmerOrOwner())
{