fix(Core/Spell) Green Beam spells should only hit one target (#9593)

* fix(Core/Spell) Green Beam spells should only hit one target

* Update SpellMgr.cpp

Co-authored-by: acidmanifesto <joshua.lee.betts@gmail.com>
This commit is contained in:
Malcrom
2021-12-08 14:48:32 -04:00
committed by GitHub
parent 7bc8b48a06
commit e8481791e0

View File

@@ -7514,6 +7514,13 @@ void SpellMgr::LoadDbcDataCorrections()
spellInfo->Effect[EFFECT_1] = 0;
});
// Green Beam
ApplySpellFix({31628, 31630, 31631}, [](SpellEntry* spellInfo)
{
spellInfo->EffectImplicitTargetA[0] = TARGET_UNIT_TARGET_ANY;
spellInfo->MaxAffectedTargets = 1;
});
for (uint32 i = 0; i < sSpellStore.GetNumRows(); ++i)
{
SpellEntry* spellInfo = (SpellEntry*)sSpellStore.LookupEntry(i);