From 108af53730e9764c90d3fa4ab0f4180a5a6322e1 Mon Sep 17 00:00:00 2001 From: Emagi Date: Thu, 19 Jun 2025 18:53:48 -0400 Subject: [PATCH] avoid adding heroic op spell effects (usually have no icon set) with no duration to the spell effects (ends up adding them to the db unnecessarily) --- source/WorldServer/Entity.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/WorldServer/Entity.cpp b/source/WorldServer/Entity.cpp index aca6447..d883f8d 100644 --- a/source/WorldServer/Entity.cpp +++ b/source/WorldServer/Entity.cpp @@ -1114,6 +1114,9 @@ void Entity::AddSpellEffect(LuaSpell* luaspell, int32 override_expire_time){ return; Spell* spell = luaspell->spell; + if(spell->GetSpellData() && spell->GetSpellData()->icon == 0 && spell->GetSpellData()->duration1 == 0 && spell->GetSpellData()->duration2 == 0) + return; + SpellEffects* old_effect = GetSpellEffect(spell->GetSpellID(), luaspell->caster); SpellEffects* effect = 0; if (old_effect){