mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
feat: add /cancelqueuedspell command to clear spell queue
Add cancelQueuedSpell() method that clears queuedSpellId_ and queuedSpellTarget_. Wire /cancelqueuedspell and /stopspellqueue slash commands. Useful for combat macros that need to prevent queued spells from firing after a current cast.
This commit is contained in:
parent
8761ad9301
commit
14007c81df
2 changed files with 7 additions and 0 deletions
|
|
@ -868,6 +868,7 @@ public:
|
|||
|
||||
// 400ms spell-queue window: next spell to cast when current finishes
|
||||
uint32_t getQueuedSpellId() const { return queuedSpellId_; }
|
||||
void cancelQueuedSpell() { queuedSpellId_ = 0; queuedSpellTarget_ = 0; }
|
||||
|
||||
// Unit cast state (tracked per GUID for target frame + boss frames)
|
||||
struct UnitCastState {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue