aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTreeston <treeston.mmoc@gmail.com>2016-02-09 23:31:59 +0100
committerTreeston <treeston.mmoc@gmail.com>2016-02-09 23:31:59 +0100
commit165c6a4d8c972ba5b44f59f5b65e5caca360e14c (patch)
tree9eb8aa52bac655a7e677fa6d72fe8d6ef193f96f /src
parent8eabbb0427fff559592545f9336909882369b820 (diff)
parente31743f68246749fdc947d0e547b0d82f4888141 (diff)
Merge pull request #16484 from Treeston/3.3.5-triggervisibility
Grids/Notifiers: Notify triggers of units moving within their LoS
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Grids/Notifiers/GridNotifiers.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Grids/Notifiers/GridNotifiers.cpp b/src/server/game/Grids/Notifiers/GridNotifiers.cpp
index c48d1947eec..571d56b618e 100644
--- a/src/server/game/Grids/Notifiers/GridNotifiers.cpp
+++ b/src/server/game/Grids/Notifiers/GridNotifiers.cpp
@@ -131,7 +131,7 @@ inline void CreatureUnitRelocationWorker(Creature* c, Unit* u)
if (!u->IsAlive() || !c->IsAlive() || c == u || u->IsInFlight())
return;
- if (c->HasReactState(REACT_AGGRESSIVE) && !c->HasUnitState(UNIT_STATE_SIGHTLESS))
+ if ((c->HasReactState(REACT_AGGRESSIVE) || c->IsTrigger()) && !c->HasUnitState(UNIT_STATE_SIGHTLESS))
{
if (c->IsAIEnabled && c->CanSeeOrDetect(u, false, true))
c->AI()->MoveInLineOfSight_Safe(u);