Kelsidavis-WoWee/include/game
Kelsi a764eea2ec Fix trainer system and add critical spell/quest opcodes
Trainer System Fixes:
- Fix CMSG_TRAINER_BUY_SPELL packet: remove incorrect trainerType field (12 bytes not 16)
- Correct spell state interpretation: 0=available, 1=unavailable, 2=known
- Add dynamic prerequisite re-evaluation in real-time as spells are learned
- Immediately update knownSpells on SMSG_TRAINER_BUY_SUCCEEDED
- Add "Show unavailable spells" checkbox filter to trainer window
- Override server state when prerequisites become met client-side

New Spell Opcodes:
- SMSG_SUPERCEDED_SPELL (0x12C): handle spell rank upgrades
- SMSG_SEND_UNLEARN_SPELLS (0x41F): handle bulk unlearning (respec/dual-spec)
- CMSG_TRAINER_LIST (0x1B0): trainer request opcode

Quest System:
- SMSG_QUESTUPDATE_COMPLETE (0x195): mark quests complete when objectives done
- Show "Quest Complete" message and enable turn-in UI

Detailed logging:
- SMSG_INITIAL_SPELLS now logs packet size and first 10 spell IDs
- Money values logged during trainer purchases
- Trainer spell states and prerequisites logged for debugging

This enables proper spell progression chains, spec changes, and quest completion
notifications matching retail WoW 3.3.5a behavior.
2026-02-10 01:24:37 -08:00
..
character.hpp Add body type selection for nonbinary characters and reduce preview rotation sensitivity 2026-02-09 17:56:04 -08:00
entity.hpp Add transport support, gameobject queries, and fix item use 2026-02-08 00:59:40 -08:00
game_handler.hpp Fix trainer system and add critical spell/quest opcodes 2026-02-10 01:24:37 -08:00
group_defines.hpp Add gameplay systems: combat, spells, groups, loot, vendors, and UI 2026-02-04 10:31:03 -08:00
inventory.hpp 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
npc_manager.hpp Add character screen model preview, item icons, stats panel, and fix targeting bugs 2026-02-06 14:24:38 -08:00
opcodes.hpp Fix trainer system and add critical spell/quest opcodes 2026-02-10 01:24:37 -08:00
player.hpp Initial commit: wowee native WoW 3.3.5a client 2026-02-02 13:03:22 -08:00
spell_defines.hpp Fix spell cast error messages, action bar drag-drop, and player name display 2026-02-06 21:25:35 -08:00
world.hpp Initial commit: wowee native WoW 3.3.5a client 2026-02-02 13:03:22 -08:00
world_packets.hpp Fix trainer system and add critical spell/quest opcodes 2026-02-10 01:24:37 -08:00
zone_manager.hpp Initial commit: wowee native WoW 3.3.5a client 2026-02-02 13:03:22 -08:00