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

This commit is contained in:
Arthur Ice 2015-01-17 23:19:56 -08:00
parent 80941d23bd
commit 81f36675b3

View File

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