Skip to content

Commit dc26e1b

Browse files
committed
Core/Auras: Add unique_weak_ptr getter for AuraEffect
1 parent 129c477 commit dc26e1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/server/game/Spells/Auras/SpellAuras.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ class TC_GAME_API Aura
376376
virtual std::string GetDebugInfo() const;
377377

378378
Trinity::unique_weak_ptr<Aura> GetWeakPtr() const { return m_scriptRef; }
379+
Trinity::unique_weak_ptr<AuraEffect> GetEffectWeakPtr(SpellEffIndex index) const { return { m_scriptRef, GetEffect(index) }; }
379380

380381
Aura(Aura const&) = delete;
381382
Aura(Aura&&) = delete;

0 commit comments

Comments
 (0)