Core/Spells: Fixed spell range check

Closes #17060
This commit is contained in:
Shauren
2016-07-01 20:26:49 +02:00
committed by Aokromes
parent 4305129672
commit fa7026cee3
4 changed files with 63 additions and 40 deletions

View File

@@ -298,7 +298,7 @@ public:
if (Blind_Timer <= diff)
{
std::list<Unit*> targets;
SelectTargetList(targets, 5, SELECT_TARGET_RANDOM, me->GetMeleeReach()*5, true);
SelectTargetList(targets, 5, SELECT_TARGET_RANDOM, me->GetCombatReach()*5, true);
for (std::list<Unit*>::const_iterator i = targets.begin(); i != targets.end(); ++i)
if (!me->IsWithinMeleeRange(*i))
{