Fix the broken logic in NearestHostileUnitInAttackDistanceCheck
This commit is contained in:
@@ -1025,10 +1025,11 @@ namespace Trinity
|
||||
return false;
|
||||
|
||||
if (m_force)
|
||||
{
|
||||
if (!me->IsValidAttackTarget(u))
|
||||
return false;
|
||||
else
|
||||
if (!me->canStartAttack(u, false))
|
||||
}
|
||||
else if (!me->canStartAttack(u, false))
|
||||
return false;
|
||||
|
||||
m_range = me->GetDistance(u); // use found unit range as new range limit for next check
|
||||
|
||||
Reference in New Issue
Block a user