From 913f0903a3264f14ea44356bc86dade81348a546 Mon Sep 17 00:00:00 2001 From: Artamedes Date: Thu, 5 Sep 2019 02:37:44 -0400 Subject: 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) --- src/server/game/AI/CreatureAI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/game/AI/CreatureAI.cpp') 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()) { -- cgit v1.2.3