Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SuperFollow goes down without need #1

Open
frbaroni opened this issue Oct 13, 2022 · 0 comments
Open

SuperFollow goes down without need #1

frbaroni opened this issue Oct 13, 2022 · 0 comments

Comments

@frbaroni
Copy link
Contributor

procedure TBBotSuperFollow.OnCreatureWalk(ACreature: TBBotCreature; APrevPos: BPos);
 begin
   if (FCreatureID <> 0) and (ACreature <> nil) then
     if ACreature.ID = FCreatureID then
       if APrevPos.Z = 7 then
         BBot.Cavebot.GoFloorDown(APrevPos);
 end;

We need more protections before going down, like ensuring the FCreatureID is non longer in the battlelist. The way it is currently, it will always go down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant