mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-22 10:05:32 +01:00
Core/Spells: Fixed creature spell immunity
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user