Fix for some combat log errors.

Only Vanish and Invisibility auras will now prevent from taking damage if target is not visible for caster.

--HG--
branch : trunk
This commit is contained in:
krz
2009-06-02 20:59:13 +02:00
parent 16e0e9931e
commit a29847bf84
3 changed files with 18 additions and 3 deletions
+1
View File
@@ -1018,6 +1018,7 @@ class TRINITY_DLL_SPEC Unit : public WorldObject
uint32 GetCombatTimer() const { return m_CombatTimer; }
bool HasAuraType(AuraType auraType) const;
bool HasAuraTypeWithFamilyFlags(AuraType auraType, uint32 familyName, uint64 familyFlags) const;
bool HasAura(uint32 spellId, uint32 effIndex) const
{ return m_Auras.find(spellEffectPair(spellId, effIndex)) != m_Auras.end(); }