From 08204186c87e2de89492b77c44613358ea3b13a4 Mon Sep 17 00:00:00 2001 From: Emagi Date: Fri, 20 Jun 2025 07:45:22 -0400 Subject: [PATCH] Stop spells being put on hotbar that are not supposed to be visible like archetypes --- source/WorldServer/client.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/WorldServer/client.cpp b/source/WorldServer/client.cpp index 5f83fbc..ac41069 100644 --- a/source/WorldServer/client.cpp +++ b/source/WorldServer/client.cpp @@ -4497,6 +4497,10 @@ void Client::SimpleMessage(int8 color, const char* message) { } void Client::SendSpellUpdate(Spell* spell, bool add_silently, bool add_to_hotbar) { + // disable potentially putting a spell on the hotbar (like archetypes) that are not to be shown to player or book + if(spell && spell->GetSpellData() && spell->GetSpellData()->type == SPELL_BOOK_TYPE_NOT_SHOWN) + add_to_hotbar = false; + PacketStruct* packet = configReader.getStruct("WS_SpellGainedMsg", GetVersion()); if (packet) { int8 xxx = spell->GetSpellData()->is_aa;