mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-17 09:33:51 +00:00
feat: add right-click pet spell autocast toggle via CMSG_PET_SPELL_AUTOCAST
Right-clicking a castable pet ability (actionId > 6) in the pet action bar now sends CMSG_PET_SPELL_AUTOCAST to toggle the spell's autocast state. The local petAutocastSpells_ set is updated optimistically and the tooltip shows the current state with a right-click hint.
This commit is contained in:
parent
586408516b
commit
e7fe35c1f9
3 changed files with 28 additions and 2 deletions
|
|
@ -746,6 +746,8 @@ public:
|
|||
}
|
||||
// Send CMSG_PET_ACTION to issue a pet command
|
||||
void sendPetAction(uint32_t action, uint64_t targetGuid = 0);
|
||||
// Toggle autocast for a pet spell via CMSG_PET_SPELL_AUTOCAST
|
||||
void togglePetSpellAutocast(uint32_t spellId);
|
||||
const std::unordered_set<uint32_t>& getKnownSpells() const { return knownSpells; }
|
||||
|
||||
// ---- Pet Stable ----
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue