fix(Core/Item): Luffa removing more than one bleed (#7752)

This commit is contained in:
lineagedr
2021-09-12 20:28:23 +03:00
committed by GitHub
parent c0bc20214f
commit 1ae8e7eca5
2 changed files with 16 additions and 0 deletions

View File

@@ -5304,8 +5304,18 @@ void Spell::EffectDispelMechanic(SpellEffIndex effIndex)
if (!aura->GetApplicationOfTarget(unitTarget->GetGUID()))
continue;
if (roll_chance_i(aura->CalcDispelChance(unitTarget, !unitTarget->IsFriendlyTo(m_caster))))
{
if ((aura->GetSpellInfo()->GetAllEffectsMechanicMask() & (1 << mechanic)))
{
dispel_list.push(std::make_pair(aura->GetId(), aura->GetCasterGUID()));
// spell only removes 1 bleed effect do not continue
if (m_spellInfo->Effects[effIndex].BasePoints == 1)
{
break;
}
}
}
}
for (; dispel_list.size(); dispel_list.pop())