Core/Units: added a helper to check if a limited target aura exists without creating an empty element in the container
This commit is contained in:
1 parent
003b096215
commit
6506e71a23
3 files changed
+12
-1
No files matched your search
@@ -1403,6 +1403,7 @@ class TC_GAME_API Unit : public WorldObject
|
||||
AuraEffectList const& GetAuraEffectsByType(AuraType type) const { return m_modAuras[type]; }
|
||||
AuraList& GetLimitedCastAuras(uint32 spellId) { return m_ltAuras[spellId]; }
|
||||
AurasBySpellIdMap& GetAllLimitedCastAuras() { return m_ltAuras; }
|
||||
bool HasLimitedTargetAuraForSpell(uint32 spellId) const;
|
||||
|
||||
AuraEffect* GetAuraEffect(uint32 spellId, uint8 effIndex, ObjectGuid casterGUID = ObjectGuid::Empty) const;
|
||||
AuraEffect* GetAuraEffectOfRankedSpell(uint32 spellId, uint8 effIndex, ObjectGuid casterGUID = ObjectGuid::Empty) const;
|
||||
|
||||
Reference in new issue
Block a user