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

make MobManager#removeMob act on sourceRoom #98

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Sakeran
Copy link
Contributor

@Sakeran Sakeran commented Aug 18, 2019

Most of the room-specific logic in MobManager#removeMob should act on the mob's source room (as set by Room#spawnNpc), instead of its current room. Otherwise, the mob is never removed from its source room's spawnedNpcs set, (and possibly the relevant Area's npc set) if it is removed while in any room other than its source.

@shawncplus shawncplus added this to the 3.1 milestone Aug 22, 2019
@seanohue
Copy link
Contributor

Tested this and verified that it is needed. Without this PR, respawn logic gets buggy.

@azigler
Copy link

azigler commented Jun 7, 2020

This works great, thanks!

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.

4 participants