mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Merge pull request #14709 from et65/6.x
Core/Spells: Fix logic in SpellEffect::EffectWeaponDmg
This commit is contained in:
@@ -2934,8 +2934,9 @@ void Spell::EffectWeaponDmg(SpellEffIndex /*effIndex*/)
|
||||
// multiple weapon dmg effect workaround
|
||||
// execute only the last weapon damage
|
||||
// and handle all effects at once
|
||||
for (SpellEffectInfo const* effect : GetEffects())
|
||||
for (uint8 index = effIndex + 1; index < MAX_SPELL_EFFECTS; index++)
|
||||
{
|
||||
SpellEffectInfo const* effect = GetEffect(index);
|
||||
if (!effect)
|
||||
continue;
|
||||
switch (effect->Effect)
|
||||
|
||||
Reference in New Issue
Block a user