From d6c85d4664837056546b9828cde260fbfc4f5e67 Mon Sep 17 00:00:00 2001 From: anguaive <39011611+anguaive@users.noreply.github.com> Date: Thu, 3 Jun 2021 14:01:40 +0200 Subject: [PATCH] fix(Core/Spell): Remove delay from Flare activation (#5933) * fix(DB/spell): Remove delay from Flare activation The activation of the Flare (spell id: 1543) AoE aura was delayed until the projectile hit the ground, which takes 5 seconds. Apparently this is not blizzlike and the area should be activated instantly when casting the spell. Closes #5908 Closes https://github.com/chromiecraft/chromiecraft/issues/650 * Remove unnecessary delete * Move Flare spell fix to SpellMgr * Fix indentation --- src/server/game/Spells/SpellMgr.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/server/game/Spells/SpellMgr.cpp b/src/server/game/Spells/SpellMgr.cpp index e1ce10e17..04a9836e4 100644 --- a/src/server/game/Spells/SpellMgr.cpp +++ b/src/server/game/Spells/SpellMgr.cpp @@ -7280,6 +7280,12 @@ void SpellMgr::LoadDbcDataCorrections() spellInfo->ManaCostPercentage = 0; }); + // Flare activation speed + ApplySpellFix({ 1543 }, [](SpellEntry* spellInfo) + { + spellInfo->Speed = 0.0f; + }); + for (uint32 i = 0; i < sSpellStore.GetNumRows(); ++i) { SpellEntry* spellInfo = (SpellEntry*)sSpellStore.LookupEntry(i);