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
committerGiacomo Pozzoni <giacomopoz@gmail.com>2019-09-05 08:37:44 +0200
commit0b3a9e2a2b2537e7224d103947ad6028c6d2e5fe (patch)
tree95913a025bcf4666f86c572faf5aff8087c0f82b /src/server/game/AI/CreatureAI.cpp
parent6ebe1afeeccb847702c12e522bddaa7b5694dc38 (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
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 f084fe547d5..ec98534a621 100644
--- a/src/server/game/AI/CreatureAI.cpp
+++ b/src/server/game/AI/CreatureAI.cpp
@@ -191,7 +191,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())
{