From c8d199139f69c110479146f71a9da4e008e8f078 Mon Sep 17 00:00:00 2001 From: Emagi Date: Sat, 28 Dec 2024 18:21:20 -0500 Subject: [PATCH] Avoid misconfigured or heroic opportunities persisting past zone if they somehow get applied to a player --- source/WorldServer/WorldDatabase.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/WorldServer/WorldDatabase.cpp b/source/WorldServer/WorldDatabase.cpp index 8c45b93..5491cf7 100644 --- a/source/WorldServer/WorldDatabase.cpp +++ b/source/WorldServer/WorldDatabase.cpp @@ -8017,6 +8017,10 @@ void WorldDatabase::LoadCharacterSpellEffects(int32 char_id, Client* client, int else continue; } + else if(!icon) { + LogWrite(LUA__WARNING, 0, "LUA", "WorldDatabase::LoadCharacterSpellEffects: GetSpell(%u, %u), no icon set, this must be a heroic opportunity or incorrectly configured spell!", spell_id, tier); + continue; + } bool isMaintained = false; bool isExistingLuaSpell = false;