mirror of
https://github.com/mangosfour/server.git
synced 2025-12-29 16:37:04 +00:00
Add some function for find/remove aura and use it in some cases
Signed-off-by: DiSlord <dislord@nomail.com>
This commit is contained in:
parent
8197ccbc73
commit
2b1be18a02
2 changed files with 46 additions and 80 deletions
|
|
@ -1126,6 +1126,7 @@ class MANGOS_DLL_SPEC Unit : public WorldObject
|
|||
void RemoveSingleAuraFromStack(uint32 spellId, uint32 effindex);
|
||||
void RemoveAurasDueToSpell(uint32 spellId, Aura* except = NULL);
|
||||
void RemoveAurasDueToItemSpell(Item* castItem,uint32 spellId);
|
||||
void RemoveAurasByCasterSpell(uint32 spellId, uint64 casterGUID);
|
||||
void RemoveAurasDueToSpellByDispel(uint32 spellId, uint64 casterGUID, Unit *dispeler);
|
||||
void RemoveAurasDueToSpellBySteal(uint32 spellId, uint64 casterGUID, Unit *stealer);
|
||||
void RemoveAurasDueToSpellByCancel(uint32 spellId);
|
||||
|
|
@ -1279,6 +1280,8 @@ class MANGOS_DLL_SPEC Unit : public WorldObject
|
|||
uint8 GetVisibleAurasCount() { return m_visibleAuras.size(); }
|
||||
|
||||
Aura* GetAura(uint32 spellId, uint32 effindex);
|
||||
Aura* GetAura(AuraType type, uint32 family, uint64 familyFlag, uint32 familyFlag2 = 0, uint64 casterGUID = 0);
|
||||
|
||||
AuraMap & GetAuras() { return m_Auras; }
|
||||
AuraMap const& GetAuras() const { return m_Auras; }
|
||||
AuraList const& GetAurasByType(AuraType type) const { return m_modAuras[type]; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue