From 23e89b8aef1999bbbd52248c40d7b76c0a67cafb Mon Sep 17 00:00:00 2001 From: Gustavo Date: Fri, 15 Jul 2016 18:45:50 -0300 Subject: Core/Spells GameObjects needs to be spawned in order to be acceptable as a SpellFocus (#17594) --- src/server/game/Grids/Notifiers/GridNotifiers.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/server/game/Grids/Notifiers') 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); -- cgit v1.2.3