Distance check

This commit is contained in:
Yunfan Li
2024-04-15 17:06:00 +08:00
parent c5abc2ee1e
commit d6a4fc3872
2 changed files with 1 additions and 2 deletions

View File

@@ -1517,7 +1517,7 @@ bool AvoidAoeAction::AvoidAuraWithDynamicObj()
return false;
}
float radius = dynOwner->GetRadius();
if (bot->GetExactDist(dynOwner) > radius) {
if (bot->GetDistance(dynOwner) > radius) {
return false;
}
Unit* currentTarget = AI_VALUE(Unit*, "current target");