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
|
|
@ -7140,6 +7140,12 @@ void GameScreen::sendChatMessage(game::GameHandler& gameHandler) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (cmdLower == "cancelqueuedspell" || cmdLower == "stopspellqueue") {
|
||||
gameHandler.cancelQueuedSpell();
|
||||
chatInputBuffer[0] = '\0';
|
||||
return;
|
||||
}
|
||||
|
||||
// /equipset [name] — equip a saved equipment set by name (partial match, case-insensitive)
|
||||
// /equipset — list available sets in chat
|
||||
if (cmdLower == "equipset") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue