Removed a usage of Mob::DistNoRoot and used ComparativeDistance instead

This commit is contained in:
Arthur Ice 2015-01-17 18:18:35 -08:00
parent 262ae383c9
commit 815a208492

View File

@ -3505,7 +3505,7 @@ void Bot::AI_Process() {
if(IsBotCasterCombatRange(GetTarget())) if(IsBotCasterCombatRange(GetTarget()))
atCombatRange = true; atCombatRange = true;
} }
else if(DistNoRoot(*GetTarget()) <= meleeDistance) { else if(ComparativeDistance(m_Position, GetTarget()->GetPosition()) <= meleeDistance) {
atCombatRange = true; atCombatRange = true;
} }