*Allow unit has multiple controlling auras. (Fix the bug that unit cannot be feared if stunned. Hope this will not break all controlling spells)

--HG--
branch : trunk
This commit is contained in:
megamage
2008-12-09 20:28:59 -06:00
parent 20947a4c73
commit b5d1418b0c
3 changed files with 209 additions and 102 deletions
+5 -2
View File
@@ -1348,8 +1348,11 @@ class TRINITY_DLL_SPEC Unit : public WorldObject
uint32 GetUnitMovementFlags() const { return m_unit_movement_flags; }
void SetUnitMovementFlags(uint32 f) { m_unit_movement_flags = f; }
void SetFeared(bool apply, uint64 casterGUID = 0, uint32 spellID = 0);
void SetConfused(bool apply, uint64 casterGUID = 0, uint32 spellID = 0);
void SetControlled(bool apply, UnitState state);
void SetFeared(bool apply/*, uint64 casterGUID = 0, uint32 spellID = 0*/);
void SetConfused(bool apply/*, uint64 casterGUID = 0, uint32 spellID = 0*/);
void SetStunned(bool apply);
void SetRooted(bool apply);
void AddComboPointHolder(uint32 lowguid) { m_ComboPointHolders.insert(lowguid); }
void RemoveComboPointHolder(uint32 lowguid) { m_ComboPointHolders.erase(lowguid); }