feat: show chat message when a spell is removed from spellbook

handleRemovedSpell now displays "You have unlearned: [SpellName]."
matching the existing handleLearnedSpell feedback pattern.
This commit is contained in:
Kelsi 2026-03-17 12:35:05 -07:00
parent 6fbf5b5797
commit 119002626e

View file

@ -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) {