[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) for (Unit::AuraList::const_iterator itr = dummyList.begin(); itr != dummyList.end(); ++itr)
{ {
if ((*itr)->GetSpellProto()->SpellFamilyName == SPELLFAMILY_DEATHKNIGHT && (*itr)->GetSpellProto()->SpellIconID == 2710) if ((*itr)->GetSpellProto()->SpellFamilyName == SPELLFAMILY_DEATHKNIGHT && (*itr)->GetSpellProto()->SpellIconID == 2710)
{
if (roll_chance_i((*itr)->GetModifier()->m_amount)) // don't consume if found if (roll_chance_i((*itr)->GetModifier()->m_amount)) // don't consume if found
return; return;
else
break;
}
} }
// consume diseases // consume diseases

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__ #ifndef __REVISION_NR_H__
#define __REVISION_NR_H__ #define __REVISION_NR_H__
#define REVISION_NR "10454" #define REVISION_NR "10455"
#endif // __REVISION_NR_H__ #endif // __REVISION_NR_H__