mirror of
https://github.com/Kelsidavis/WoWee.git
synced 2026-03-22 23:30:14 +00:00
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:
parent
6fbf5b5797
commit
119002626e
1 changed files with 6 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue