Allow state/effect immunities ignore whole spell when one effect is immuned

(Fixes getting part of CC auras with some immunities)

--HG--
branch : trunk
This commit is contained in:
thenecromancer
2010-01-13 10:20:00 +01:00
parent 6b07806d0c
commit 8dd67e8bb3
6 changed files with 24 additions and 13 deletions
+1 -1
View File
@@ -1817,7 +1817,7 @@ class TRINITY_DLL_SPEC Unit : public WorldObject
// redefined in Creature
bool IsImmunedToDamage(SpellSchoolMask meleeSchoolMask);
bool IsImmunedToDamage(SpellEntry const* spellInfo);
virtual bool IsImmunedToSpellEffect(SpellEntry const* spellInfo, uint32 index) const;
virtual bool IsImmunedToSpellEffect(SpellEntry const* spellInfo, uint32 index, bool checkMechanic=true) const;
// redefined in Creature
uint32 CalcNotIgnoreDamageRedunction( uint32 damage, SpellSchoolMask damageSchoolMask);
uint32 CalcArmorReducedDamage(Unit* pVictim, const uint32 damage, SpellEntry const *spellInfo, WeaponAttackType attackType=MAX_ATTACK);