mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 09:33:51 +00:00
feat: fire combat, spell, and cooldown events for Lua addon system
Add PLAYER_REGEN_DISABLED/ENABLED (combat enter/leave) via per-frame edge detection, LEARNED_SPELL_IN_TAB/SPELLS_CHANGED on spell learn/remove, SPELL_UPDATE_COOLDOWN/ACTIONBAR_UPDATE_COOLDOWN on cooldown finish, and PLAYER_XP_UPDATE on XP field changes. Total addon events now at 34.
This commit is contained in:
parent
4c10974553
commit
ae627193f8
2 changed files with 25 additions and 0 deletions
|
|
@ -2797,6 +2797,7 @@ private:
|
|||
float autoAttackResendTimer_ = 0.0f; // Re-send CMSG_ATTACKSWING every ~1s while attacking
|
||||
float autoAttackFacingSyncTimer_ = 0.0f; // Periodic facing sync while meleeing
|
||||
std::unordered_set<uint64_t> hostileAttackers_;
|
||||
bool wasCombat_ = false; // Previous frame combat state for PLAYER_REGEN edge detection
|
||||
std::vector<CombatTextEntry> combatText;
|
||||
static constexpr size_t MAX_COMBAT_LOG = 500;
|
||||
struct RecentSpellstealLogEntry {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue