Makes mechanicals immune to heals other than those specifically targeting mechanicals. had to bribe quite some Gnomes and Goblins to make this happen.

--HG--
branch : trunk
This commit is contained in:
Liberate
2010-07-28 01:26:18 +02:00
parent e232c0e235
commit 4476247f10

View File

@@ -1647,6 +1647,9 @@ bool Creature::IsImmunedToSpellEffect(SpellEntry const* spellInfo, uint32 index)
if (GetCreatureInfo()->MechanicImmuneMask & (1 << (spellInfo->EffectMechanic[index] - 1)))
return true;
if (GetCreatureInfo()->type == CREATURE_TYPE_MECHANICAL && spellInfo->Effect[index] == SPELL_EFFECT_HEAL)
return true;
return Unit::IsImmunedToSpellEffect(spellInfo, index);
}