From 767846f7e52d461d0dbe61e7c079c8f480548693 Mon Sep 17 00:00:00 2001 From: JJ <3617814+joligario@users.noreply.github.com> Date: Sun, 18 Feb 2024 17:13:32 -0500 Subject: [PATCH] [Bug Fix] Aura effect spell id from #3964 (#4094) Auras were trying to cast another aura spell vice the spell effect --- zone/aura.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zone/aura.cpp b/zone/aura.cpp index 793541954..3c9a406ec 100644 --- a/zone/aura.cpp +++ b/zone/aura.cpp @@ -942,12 +942,12 @@ bool ZoneDatabase::GetAuraEntry(uint16 spell_id, AuraRecord& r) return false; } - auto e = l.front(); + auto& e = l.front(); strn0cpy(r.name, e.name.c_str(), sizeof(r.name)); r.npc_type = e.npc_type; - r.spell_id = spell_id; + r.spell_id = e.spell_id; r.distance = e.distance * e.distance; r.aura_type = e.aura_type; r.spawn_type = e.spawn_type;