fix(Core/Spells): Fix Fatal Attraction procing multiple times for eac… (#20014)

fix(Core/Spells): Fix Fatal Attraction procing multiple times for each player nearby
This commit is contained in:
Andrew 2024-09-22 14:52:19 -03:00 committed by GitHub
parent f917b96574
commit 78cc255f43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4837,6 +4837,12 @@ void SpellMgr::LoadSpellInfoCorrections()
spellInfo->AttributesEx5 |= SPELL_ATTR5_ALLOW_ACTION_DURING_CHANNEL;
});
// Fatal Attraction
ApplySpellFix({ 40870 }, [](SpellInfo* spellInfo)
{
spellInfo->MaxAffectedTargets = 1;
});
for (uint32 i = 0; i < GetSpellInfoStoreSize(); ++i)
{
SpellInfo* spellInfo = mSpellInfoMap[i];