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 bugs in SetMaster target handling. #804

Merged
merged 2 commits into from
Dec 28, 2014

Conversation

skittles1
Copy link

The ResetMonsterChasers message called by entering a room was masking bugs caused by SetMaster adding and removing targets but not correctly handling the piMonsterChasers property in Player used to keep track of how many mobs are chasing a player. That call was removed in the last hotfix as it was causing issues with multiple aggro on room entry with the faster movement timers and upgraded aggro code. SetMaster now handles target switching correctly by calling TargetSwitch or EnterStateWait which perform the appropriate checks before adding or removing a target.

Also modified SomethingMoved in brain.kod to take the correct action when the mob is in STATE_LIMBO rather than just print a debug string. If the monster hasn't been killed (i.e. still has an owner) it will return to action via entering STATE_MOVE, otherwise this will just return and not attempt any other actions the monster cannot take anyway.

The ResetMonsterChasers message called by entering a room was masking
bugs caused by SetMaster adding and removing targets but not correctly
handling the piMonsterChasers property in Player used to keep track of
how many mobs are chasing a player. This should now work correctly.
Also modified SomethingMoved in brain.kod to take the correct action
when the mob is in STATE_LIMBO rather than just print a debug string.
@skittles1 skittles1 added this to the 1.0.7.3 milestone Dec 26, 2014
From 85 to 100, based on testing/feedback.
@skittles1 skittles1 merged commit 5fdd535 into OpenMeridian:master Dec 28, 2014
@skittles1 skittles1 deleted the monsterchasers branch December 28, 2014 00:40
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.

1 participant