Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: game client hanging when equipping different equipment set (#945)
* fix: only update weapon damage stats if a weapon slot changed PLAYER_EQUIPMENT_CHANGED is a bursty event, so the event handlers for it must handle events quickly. Ignore PLAYER_EQUIPMENT_CHANGED if the slot changed isn't a weapon slot since we only listen for this event to update the weapon damage stats. This fixes an issue with the game client hanging when changing specializations and an new equipment set is auto-equipped. * fix: use correct type for handleUnitStats Event handlers always take the event string as the first argument. This fixes an issue where the unit stats were not updated until the next time the player changed talents or zoned into the world.
- Loading branch information