Skip to content

Commit

Permalink
Grids/Notifiers: Notify triggers of units moving within their LoS.
Browse files Browse the repository at this point in the history
(cherry picked from commit e31743f)
  • Loading branch information
Treeston authored and Shauren committed Apr 5, 2016
1 parent 7135a23 commit 2bde6e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/game/Grids/Notifiers/GridNotifiers.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 2bde6e2

Please sign in to comment.