aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Grids
diff options
context:
space:
mode:
authorGustavo <sirikfoll@hotmail.com>2016-07-15 18:45:50 -0300
committerShauren <shauren.trinity@gmail.com>2016-07-15 23:45:50 +0200
commit23e89b8aef1999bbbd52248c40d7b76c0a67cafb (patch)
tree49b34750ea3b5d8d113c8d910e72101f6f71e963 /src/server/game/Grids
parent55ba3bd012220b4b58793d8de5f90b1585c70a04 (diff)
Core/Spells GameObjects needs to be spawned in order to be acceptable as a SpellFocus (#17594)
Diffstat (limited to 'src/server/game/Grids')
-rw-r--r--src/server/game/Grids/Notifiers/GridNotifiers.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/Grids/Notifiers/GridNotifiers.h b/src/server/game/Grids/Notifiers/GridNotifiers.h
index 1d2b0bd33cf..5283805c59d 100644
--- a/src/server/game/Grids/Notifiers/GridNotifiers.h
+++ b/src/server/game/Grids/Notifiers/GridNotifiers.h
@@ -620,6 +620,9 @@ namespace Trinity
if (go->GetGOInfo()->spellFocus.focusId != i_focusId)
return false;
+ if (!go->isSpawned())
+ return false;
+
float dist = go->GetGOInfo()->spellFocus.dist / 2.f;
return go->IsWithinDistInMap(i_unit, dist);