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

[Bug Fix] Fix EVENT_KILLED_MERIT firing before NPC removal #4185

Merged
merged 7 commits into from Mar 17, 2024

Conversation

Kinglykrab
Copy link
Contributor

@Kinglykrab Kinglykrab commented Mar 10, 2024

Perl

  • Add $client->GetGroupOrRaidOrSelf().
  • Add $client->GetGroupOrRaidOrSelf(clients_only).

Lua

  • Add client:GetGroupOrRaidOrSelf().
  • Add client:GetGroupOrRaidOrSelf(clients_only).

Notes

  • NPCs were parsing this event too early and anything that checked if they were still alive in EVENT_KILLED_MERIT would show them still alive because of this.

Image

image

@Kinglykrab Kinglykrab marked this pull request as ready for review March 14, 2024 01:58
@fryguy503
Copy link
Contributor

was @Kinglykrab
Add GetRaidOrGroupOrSelf() to Perl/Lua meant to be added to this PR?

@Akkadius
Copy link
Member

was @Kinglykrab Add GetRaidOrGroupOrSelf() to Perl/Lua meant to be added to this PR?

Yes because we loop this logic multiple times in Death

@fryguy503
Copy link
Contributor

Gotcha, I know KK wanted feedback on this, I have the version without the lua/perl defs and so far its working great

zone/client.cpp Outdated Show resolved Hide resolved
zone/lua_client.cpp Outdated Show resolved Hide resolved
# Notes
- NPCs were parsing this event too early and anything that checked if they were still alive in `EVENT_KILLED_MERIT` would show them still alive because of this.

# Image
zone/lua_client.cpp Outdated Show resolved Hide resolved
@Kinglykrab Kinglykrab merged commit ee12a7a into master Mar 17, 2024
2 checks passed
@Kinglykrab Kinglykrab deleted the bug_fix/event_killed_merit branch March 17, 2024 21:32
@Akkadius Akkadius mentioned this pull request Mar 23, 2024
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

4 participants