This commit is contained in:
Your Name
2020-08-29 12:12:01 -06:00
parent ae968e34df
commit 4ad64f4ae4
2 changed files with 2 additions and 2 deletions

View File

@ -2146,7 +2146,7 @@ watchOnGoal(goal, dis)
while(DistanceSquared(self.origin, goal) > dis)
wait 0.05;
if (isDefined(self.bot.script_goal) && self.bot.script_goal == goal)
if (isDefined(self.bot.script_goal) && DistanceSquared(self.bot.script_goal, goal) <= dis)
self notify("script_goal");
self notify("goal");
}