mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 19:37:02 +00:00
[10455] Add missing break, thanks to nos4r2zod
This commit is contained in:
parent
326fff975b
commit
e115f635ef
2 changed files with 5 additions and 1 deletions
|
|
@ -2554,8 +2554,12 @@ void Spell::EffectDummy(SpellEffectIndex eff_idx)
|
|||
for (Unit::AuraList::const_iterator itr = dummyList.begin(); itr != dummyList.end(); ++itr)
|
||||
{
|
||||
if ((*itr)->GetSpellProto()->SpellFamilyName == SPELLFAMILY_DEATHKNIGHT && (*itr)->GetSpellProto()->SpellIconID == 2710)
|
||||
{
|
||||
if (roll_chance_i((*itr)->GetModifier()->m_amount)) // don't consume if found
|
||||
return;
|
||||
else
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// consume diseases
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue