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:
Ovahlord committed 2022-02-21 13:44:24 +01:00
1 parent 003b096215
commit 6506e71a23
3 files changed
+12 -1

No files matched your search

+1
View File
@@ -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;