aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLiberate <none@none>2010-07-28 01:26:18 +0200
committerLiberate <none@none>2010-07-28 01:26:18 +0200
commit4476247f10deefcab0c3a54d0d8622bb93087605 (patch)
tree321a94d5f6852f3652ee7782e5f3a2c75626af1d /src
parente232c0e235d7325c05eee6f13cbbc95aac93a6a2 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/server/game/Entities/Creature/Creature.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/server/game/Entities/Creature/Creature.cpp b/src/server/game/Entities/Creature/Creature.cpp
index c4a503ef57c..4012edcd81c 100644
--- a/src/server/game/Entities/Creature/Creature.cpp
+++ b/src/server/game/Entities/Creature/Creature.cpp
@@ -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);
}