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:
Kelsi 2026-03-18 05:08:10 -07:00
parent 586408516b
commit e7fe35c1f9
3 changed files with 28 additions and 2 deletions

View file

@ -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 ----