Skip to content

Commit

Permalink
fix(Core/Spells): Fix Fatal Attraction procing multiple times for eac… (
Browse files Browse the repository at this point in the history
#20014)

fix(Core/Spells): Fix Fatal Attraction procing multiple times for each player nearby
  • Loading branch information
Nyeriah committed Sep 22, 2024
1 parent f917b96 commit 78cc255
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/server/game/Spells/SpellInfoCorrections.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 78cc255

Please sign in to comment.