[10455] Add missing break, thanks to nos4r2zod

This commit is contained in:
Laise 2010-09-08 11:28:15 +03:00
parent 326fff975b
commit e115f635ef
2 changed files with 5 additions and 1 deletions

View file

@ -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