mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-04-03 20:03:50 +00:00
refactor: extract SpellHandler::resetAllState from selectCharacter
selectCharacter had 30+ if(spellHandler_) guards reaching into SpellHandler internals (knownSpells_, spellCooldowns_, playerAuras_, etc.) to clear per-character state. Consolidated into resetAllState() so SpellHandler owns its own reset logic and new state fields don't require editing GameHandler.
This commit is contained in:
parent
fc2c6bab40
commit
3f37ffcea3
1 changed files with 3 additions and 0 deletions
|
|
@ -188,6 +188,9 @@ public:
|
|||
void stopCasting();
|
||||
void resetCastState();
|
||||
void resetTalentState();
|
||||
// Full per-character reset (spells, cooldowns, auras, cast state, talents).
|
||||
// Called from GameHandler::selectCharacter so spell state doesn't bleed between characters.
|
||||
void resetAllState();
|
||||
void clearUnitCaches();
|
||||
|
||||
// Aura duration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue