mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-23 07:40:14 +00:00
Issue: Trainer buttons were all greyed out because alreadyKnown was incorrectly calculated using (state == 0 || isKnown(spellId)), which marked spells with state=0 as 'already known' even when they weren't in the knownSpells list. This caused prerequisite checks to fail since they only check knownSpells. Fix: Changed alreadyKnown to only check isKnown(spellId), removing the state==0 check. Now prerequisites work correctly. Added extensive debug logging to track: - Known spells count and spell IDs - Individual prerequisite checks (chain1, chain2, chain3) - Whether spells are in initial SMSG_INITIAL_SPELLS packet Note: Some trainers may still show greyed buttons due to server-side data issues where prerequisite spells are marked as unavailable (state=0) even though they haven't been learned yet. This is correct client behavior. |
||
|---|---|---|
| .. | ||
| auth_screen.cpp | ||
| character_create_screen.cpp | ||
| character_screen.cpp | ||
| game_screen.cpp | ||
| inventory_screen.cpp | ||
| quest_log_screen.cpp | ||
| realm_screen.cpp | ||
| spellbook_screen.cpp | ||
| talent_screen.cpp | ||
| ui_manager.cpp | ||