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

CommPrefix bump to 5 + others #187

Merged
merged 7 commits into from
Mar 9, 2022
Merged

CommPrefix bump to 5 + others #187

merged 7 commits into from
Mar 9, 2022

Conversation

teelolws
Copy link
Contributor

@teelolws teelolws commented Mar 9, 2022

Please don't release this midweek. If you can't accept the PR and tag a release before tomorrow (Thursday) please wait until Monday. I don't want to have a mess of half-updated players over the weekend to deal with.

In world pvp, the chatlog was showing messages like "Enemyplayer died, honorable kill 5" even if Enemyplayer was actually on another server. This means the kill counter was being saved under Enemyplayer-Arugal when it should be saved under Enemyplayer-Yojamba. I can get their realm from the UNIT_DIED subevent of the COMBAT_LOG event, and store it in a cache. This isn't 100% if there are two players with the same name from different realms both doing pvp at the same time. But that should be niche enough to not matter.

Also made a bunch of functions local that were leaking into the global namespace. If testing becomes a problem later on I might shove them into the HonorSpy: namespace instead.

…re on different servers

Watches the combat log for actions by/against players on other servers, storing their realm. The realm is not available during the CHAT_MSG_COMBAT_HONOR_GAIN event. There are some niche cases where the realm may still be incorrect: if you're simultaneously fighting two players from different realms with the exact same name.
Not used anywhere in the GUI or base code, this is an advanced function to be called manually by players who somewhat know what they're doing.
@kakysha kakysha merged commit 00fd15b into kakysha:classic Mar 9, 2022
@kakysha
Copy link
Owner

kakysha commented Mar 9, 2022

Merged. So when is the best time time to release the update? Today I suppose?

@teelolws
Copy link
Contributor Author

teelolws commented Mar 9, 2022

Monday.

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.

None yet

2 participants