View Single Post
07/29/14, 05:04 PM   #1
mattmillus
AddOn Author - Click to view addons
Join Date: May 2014
Posts: 13
EVENT_PLAYER_COMBAT_STATE timing incorrect?

Hi guys, something strange came up while coding my new combat logging addon..

It seems that EVENT_PLAYER_COMBAT_STATE events come in before EVENT_COMBAT_EVENT -> ACTION_RESULT_DIED (and the associated damage events for the final killing blow)

The picture should pretty much say it all:


Has anyone else noticed such things? Does the game not have some sort of event queue that guarantees ordering? Advice appreciated on this, I am considering using an asynchronous timer to delay my HandleLeaveCombat() function until like 0.1 seconds after EVENT_PLAYER_COMBAT_STATE comes in, but this seems like a **** hack.
  Reply With Quote