diff options
| author | megamage <none@none> | 2009-01-18 19:01:41 -0600 |
|---|---|---|
| committer | megamage <none@none> | 2009-01-18 19:01:41 -0600 |
| commit | 40e7dcb599c1e596151356a4cc4d6f641bc1ec05 (patch) | |
| tree | 7793b2697c9151f96394f77f1d89375ee092f69a /src/game/Creature.cpp | |
| parent | c85c89dc0b0564113e48bfcaf96dc2af55d73bb8 (diff) | |
*Update to Mangos 7111.
--HG--
branch : trunk
Diffstat (limited to 'src/game/Creature.cpp')
| -rw-r--r-- | src/game/Creature.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/game/Creature.cpp b/src/game/Creature.cpp index 424c4e1eaae..ecb16ce9521 100644 --- a/src/game/Creature.cpp +++ b/src/game/Creature.cpp @@ -1713,12 +1713,12 @@ bool Creature::IsImmunedToSpell(SpellEntry const* spellInfo) return Unit::IsImmunedToSpell(spellInfo); } -bool Creature::IsImmunedToSpellEffect(uint32 effect, uint32 mechanic) const +bool Creature::IsImmunedToSpellEffect(SpellEntry const* spellInfo, uint32 index) const { - if (GetCreatureInfo()->MechanicImmuneMask & (1 << (mechanic-1))) + if (GetCreatureInfo()->MechanicImmuneMask & (1 << (spellInfo->EffectMechanic[index] - 1))) return true; - return Unit::IsImmunedToSpellEffect(effect, mechanic); + return Unit::IsImmunedToSpellEffect(spellInfo, index); } SpellEntry const *Creature::reachWithSpellAttack(Unit *pVictim) |
