Kelsidavis-WoWee/src/ui
Kelsi 01ff6db748 Fix trainer prerequisite checking
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.
2026-02-09 22:13:31 -08:00
..
auth_screen.cpp Improve login screen UI with simplified text and compatibility mode 2026-02-07 12:23:03 -08:00
character_create_screen.cpp Add body type selection for nonbinary characters and reduce preview rotation sensitivity 2026-02-09 17:56:04 -08:00
character_screen.cpp Fix underground spawns in Stormwind, redesign delete character button 2026-02-07 15:58:18 -08:00
game_screen.cpp Fix trainer prerequisite checking 2026-02-09 22:13:31 -08:00
inventory_screen.cpp Add idle yawn emote and hearth home tooltip 2026-02-08 03:39:02 -08:00
quest_log_screen.cpp Add player name placeholder and improve dialog text substitution 2026-02-09 17:46:45 -08:00
realm_screen.cpp Fix terrain streaming loop and auto-select single realm/character 2026-02-06 14:56:26 -08:00
spellbook_screen.cpp Simplify spellbook tabs to class specialties + General 2026-02-06 21:27:34 -08:00
talent_screen.cpp Fix hair/vendor/loot bugs, revamp spellbook with tabs and icons, clean up action bar, add talent placeholder 2026-02-06 16:04:25 -08:00
ui_manager.cpp Upgrade to C++20 and fix all compilation warnings 2026-02-07 11:43:37 -08:00