Core/Spells: Fixed creature spell immunity

This commit is contained in:
Shauren
2015-01-24 19:54:41 +01:00
parent a958275d13
commit 284b807af4

View File

@@ -1642,7 +1642,7 @@ bool Creature::IsImmunedToSpell(SpellInfo const* spellInfo) const
bool Creature::IsImmunedToSpellEffect(SpellInfo const* spellInfo, uint32 index) const
{
SpellEffectInfo const* effect = spellInfo->GetEffect(GetMap()->GetDifficultyID());
SpellEffectInfo const* effect = spellInfo->GetEffect(this, index);
if (!effect)
return true;
if (GetCreatureTemplate()->MechanicImmuneMask & (1 << (effect->Mechanic - 1)))