From 119002626e57078ac27cdf1ebc0ec82e064f8c55 Mon Sep 17 00:00:00 2001 From: Kelsi Date: Tue, 17 Mar 2026 12:35:05 -0700 Subject: [PATCH] feat: show chat message when a spell is removed from spellbook handleRemovedSpell now displays "You have unlearned: [SpellName]." matching the existing handleLearnedSpell feedback pattern. --- src/game/game_handler.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/game/game_handler.cpp b/src/game/game_handler.cpp index 84bd5db2..75a7ccd1 100644 --- a/src/game/game_handler.cpp +++ b/src/game/game_handler.cpp @@ -18473,6 +18473,12 @@ void GameHandler::handleRemovedSpell(network::Packet& packet) { knownSpells.erase(spellId); LOG_INFO("Removed spell: ", spellId); + const std::string& name = getSpellName(spellId); + if (!name.empty()) + addSystemChatMessage("You have unlearned: " + name + "."); + else + addSystemChatMessage("A spell has been removed."); + // Clear any action bar slots referencing this spell bool barChanged = false; for (auto& slot : actionBar) {