diff options
Diffstat (limited to 'src/game/SpellAuras.h')
| -rw-r--r-- | src/game/SpellAuras.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/game/SpellAuras.h b/src/game/SpellAuras.h index db747da3c54..4c37eeb121f 100644 --- a/src/game/SpellAuras.h +++ b/src/game/SpellAuras.h @@ -353,6 +353,7 @@ class TRINITY_DLL_SPEC AuraEffect virtual void Update(uint32 diff); uint32 GetTickNumber() const { return m_tickNumber; } + int32 GetTotalTicks () const { return m_amplitude ? (GetParentAura()->GetAuraMaxDuration() / m_amplitude) : 1;} bool IsAreaAura() const { return m_isAreaAura; } bool IsPeriodic() const { return m_isPeriodic; } bool IsPersistent() const { return m_isPersistent; } |
