Fix added check for IsImmunedToSpell

Signed-off-by: dr.skull <dr.skull@centrum.sk>
This commit is contained in:
dr.skull committed 2012-06-17 23:19:32 +02:00
1 parent 3f8efb21cd
commit b5a072855e
2 files changed
+6 -6

No files matched your search

+3 -3
View File
@@ -11534,12 +11534,12 @@ bool Unit::IsImmunedToSpell(SpellInfo const* spellInfo)
}
bool immuneToAllEffects = true;
for (uint32 i = 0; i < MAX_SPELL_EFFECTS; ++i)
for (uint8 i = 0; i < MAX_SPELL_EFFECTS; ++i)
{
// State/effect immunities applied by aura expect full spell immunity
// Ignore effects with mechanic, they are supposed to be checked separately
if(!spellInfo->Effects[i].IsEffect())
break;
if (!spellInfo->Effects[i].IsEffect())
continue;
if (!IsImmunedToSpellEffect(spellInfo, i))
{
immuneToAllEffects = false;