mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 15:40:45 +01:00
Core/Spells: Fixed Spell::EffectWeaponDmg for spells with multiple damage effects
Closes #26717
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user