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

Duplicate attempts are being counted for Invincible's Reins #213

Closed
Duckwhale opened this issue Nov 18, 2020 · 3 comments · Fixed by #627
Closed

Duplicate attempts are being counted for Invincible's Reins #213

Duckwhale opened this issue Nov 18, 2020 · 3 comments · Fixed by #627

Comments

@Duckwhale
Copy link
Member

Source: WowAce

I accidentally managed to reproduce it while trying to troubleshoot an unrelated issue (#182). Here is the debug log:

https://i.imgur.com/cGSTGfy.png

https://i.imgur.com/UUQAgn4.png

https://i.imgur.com/BzZB3WY.png

https://i.imgur.com/76HwmBw.png

@Duckwhale Duckwhale added this to the Maintenance milestone Nov 18, 2020
@Duckwhale Duckwhale changed the title Duplicate attempts are counted for Invincible's Reigns Duplicate attempts are counted for Invincible's Reins Nov 18, 2020
@Duckwhale Duckwhale changed the title Duplicate attempts are counted for Invincible's Reins Duplicate attempts are being counted for Invincible's Reins Nov 18, 2020
@Duckwhale
Copy link
Member Author

Also, is it possible this might be related to #174?

@Duckwhale Duckwhale added this to Next release (Planning) in Timeline Nov 18, 2020
@Duckwhale Duckwhale moved this from Next release (Planning) to Current release (WIP and testing) in Timeline Nov 18, 2020
@Duckwhale Duckwhale moved this from Current release (WIP and testing) to Soon™ in Timeline Nov 23, 2020
@Duckwhale Duckwhale moved this from Soon™ to Next release (Planning) in Timeline Mar 12, 2021
@Duckwhale Duckwhale removed this from the Maintenance milestone Jan 9, 2023
@Duckwhale
Copy link
Member Author

The problem is that Rarity.npcs_to_items[36597] contains all items that are related to the boss, and then OnCombat blindly adds attempts for all of them while handling UNIT_DIED. Invincible uses this event with a fake NPC ID, but also uses kill statistics (which adds the second attempt). Clearly this isn't right. I suppose switching to SPECIAL instead of BOSS might help?

Source: Core/EventHandlers.lua

Now, there are still a few questions:

  1. Why are the pets (that use NPC and kill statistics) only counting once?
  2. Does the problem occur always or only "sometimes" (see Duplicate attempts are added when killing Al'Akir #174)?
  3. Should items with kill statistics use NPC, BOSS, or SPECIAL? (check the DB for other items?)

@Duckwhale Duckwhale self-assigned this Aug 24, 2023
@Duckwhale Duckwhale moved this from The time is nigh (Planning) to It's finally happening! (WIP) in Timeline Aug 24, 2023
@Duckwhale
Copy link
Member Author

I suppose the answers to the above questions are:

  1. Because the duplicate attempt comes from the UNIT_DIED event handler, i.e. the BOSS detection method (combat log events)
  2. It should happen every time, as long as UNIT_DIED is triggered by the game
  3. All items seem to be using BOSS so changing the UNIT_DIED event handler is likely easiest

The simplest fix would be to just check if the item has statistics and then not add attempts for a UNIT_DIED event.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant