From b35fe879ad812947a50666ccc41d3603227291f9 Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 23 Aug 2009 00:46:21 -0500 Subject: *Some update of spell target selection. --HG-- branch : trunk --- src/game/GridNotifiers.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/game/GridNotifiers.cpp') 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())) -- cgit v1.2.3