Core/Spells: Fixed Spell::EffectWeaponDmg for spells with multiple damage effects

Closes #26717
This commit is contained in:
Shauren
2021-08-28 19:53:53 +02:00
parent 3dd75a49b1
commit aebf308368

View File

@@ -2798,8 +2798,9 @@ void Spell::EffectWeaponDmg()
// multiple weapon dmg effect workaround
// execute only the last weapon damage
// and handle all effects at once
for (SpellEffectInfo const* effect : m_spellInfo->GetEffects())
for (size_t j = effectInfo->EffectIndex + 1; j < m_spellInfo->GetEffects().size(); ++j)
{
SpellEffectInfo const* effect = m_spellInfo->GetEffect(j);
if (!effect)
continue;
switch (effect->Effect)