aboutsummaryrefslogtreecommitdiff
path: root/src/game/GridNotifiers.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2009-08-23 00:46:21 -0500
committermegamage <none@none>2009-08-23 00:46:21 -0500
commitb35fe879ad812947a50666ccc41d3603227291f9 (patch)
treec3a69fe263aac3e6e9ca66b0a406a20c65ba23fe /src/game/GridNotifiers.cpp
parentdb066046df2272b98f478a7072067a41fe69905f (diff)
*Some update of spell target selection.
--HG-- branch : trunk
Diffstat (limited to 'src/game/GridNotifiers.cpp')
-rw-r--r--src/game/GridNotifiers.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/GridNotifiers.cpp b/src/game/GridNotifiers.cpp
index 858c807e386..5e40b8d81d9 100644
--- a/src/game/GridNotifiers.cpp
+++ b/src/game/GridNotifiers.cpp
@@ -150,7 +150,7 @@ MessageDistDeliverer::Visit(PlayerMapType &m)
if(!target->InSamePhase(i_phaseMask))
continue;
- if(target->GetDistanceSq(i_source) > i_distSq)
+ if(target->GetExactDistSq(i_source) > i_distSq)
continue;
// Send packet to all who are sharing the player's vision
@@ -175,7 +175,7 @@ MessageDistDeliverer::Visit(CreatureMapType &m)
if(!iter->getSource()->InSamePhase(i_phaseMask))
continue;
- if(iter->getSource()->GetDistanceSq(i_source) > i_distSq)
+ if(iter->getSource()->GetExactDistSq(i_source) > i_distSq)
continue;
// Send packet to all who are sharing the creature's vision
@@ -197,7 +197,7 @@ MessageDistDeliverer::Visit(DynamicObjectMapType &m)
if(!iter->getSource()->InSamePhase(i_phaseMask))
continue;
- if(iter->getSource()->GetDistanceSq(i_source) > i_distSq)
+ if(iter->getSource()->GetExactDistSq(i_source) > i_distSq)
continue;
if (IS_PLAYER_GUID(iter->getSource()->GetCasterGUID()))