This commit is contained in:
Your Name
2020-09-05 00:19:55 -06:00
parent f88b8295ca
commit bc322b5ab4
3 changed files with 151 additions and 11 deletions

View File

@ -113,7 +113,7 @@ SetAttacker(att)
*/
HasScriptGoal()
{
return (isDefined(self.bot.script_goal));
return (isDefined(self GetScriptGoal()));
}
/*
@ -128,6 +128,11 @@ SetScriptGoal(goal, dist)
self notify("new_goal");
}
GetScriptGoal()
{
return self.bot.script_goal;
}
/*
Clears the bot's goal.
*/