fix(Core/Spells): Shadow demon - Allow to move while casting Paralyze (#19948)

* fix(Scripts/BlackTemple): fix stationary shadow demons

* optimization: use else if to stop the execution when a condition is reach

* revert last changes and fix the spell to allow move while casting

* .
This commit is contained in:
Grimdhex
2024-09-14 13:39:03 +02:00
committed by GitHub
parent bd40fef081
commit 4fc60bbbdf

View File

@@ -4831,6 +4831,12 @@ void SpellMgr::LoadSpellInfoCorrections()
spellInfo->Effects[EFFECT_0].RadiusEntry = sSpellRadiusStore.LookupEntry(EFFECT_RADIUS_3_YARDS);
});
// Paralyze
ApplySpellFix({ 41083 }, [](SpellInfo* spellInfo)
{
spellInfo->AttributesEx5 |= SPELL_ATTR5_ALLOW_ACTION_DURING_CHANNEL;
});
for (uint32 i = 0; i < GetSpellInfoStoreSize(); ++i)
{
SpellInfo* spellInfo = mSpellInfoMap[i];