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
This commit is contained in:
anguaive
2021-06-03 14:01:40 +02:00
committed by GitHub
parent a75e34c793
commit d6c85d4664

View File

@@ -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);