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

fix(engine): reset spawn point for following npcs #1018

Merged
merged 4 commits into from
Nov 29, 2024

Conversation

tannerdino
Copy link
Collaborator

  • reset spawn coords of the npc every tick it follows. No way to confirm this in osrs, but if a following npc switches to attack you, it could get stuck if you're far away from its spawn point. Example of this for us would be the dwarf random event
  • also only teleports to player after movement is processed, the old code the following npc could tele and move same tick, which didnt match osrs tests

@Pazaz Pazaz merged commit ba982b0 into 2004Scape:main Nov 29, 2024
5 checks passed
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

Successfully merging this pull request may close these issues.

2 participants