aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/AI/CreatureAI.cpp
diff options
context:
space:
mode:
authorccrs <ccrs@users.noreply.github.com>2019-06-29 16:01:58 +0200
committerccrs <ccrs@users.noreply.github.com>2019-06-29 16:01:58 +0200
commit626a24822b3c6a5d5b9a4b29861ecf393fd9288b (patch)
tree1f22b1b274f479b1668a962ca305bcdfda6d0b47 /src/server/game/AI/CreatureAI.cpp
parent33b4ad5a89cae0d3d527b58e1a438772450d7e32 (diff)
Misc: some corrections after recent merges
Diffstat (limited to 'src/server/game/AI/CreatureAI.cpp')
-rw-r--r--src/server/game/AI/CreatureAI.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/server/game/AI/CreatureAI.cpp b/src/server/game/AI/CreatureAI.cpp
index 58e25d9086a..ca4d7460f01 100644
--- a/src/server/game/AI/CreatureAI.cpp
+++ b/src/server/game/AI/CreatureAI.cpp
@@ -152,7 +152,7 @@ void CreatureAI::TriggerAlert(Unit const* who) const
me->GetMotionMaster()->MoveDistract(5 * IN_MILLISECONDS, me->GetAbsoluteAngle(who));
}
-// adapted from logic in Spell:EFfectSummonType before commit 8499434
+// adapted from logic in Spell:EffectSummonType
static bool ShouldFollowOnSpawn(SummonPropertiesEntry const* properties)
{
// Summons without SummonProperties are generally scripted summons that don't belong to any owner
@@ -183,6 +183,7 @@ static bool ShouldFollowOnSpawn(SummonPropertiesEntry const* properties)
return false;
}
}
+
void CreatureAI::JustAppeared()
{
if (TempSummon* summon = me->ToTempSummon())