From 6301cb06bfc960232da619ba2810b1c3eca9d2e2 Mon Sep 17 00:00:00 2001 From: Pawel Date: Wed, 13 Dec 2017 00:24:05 +0100 Subject: [PATCH] v7.3.0.1 - Small api update --- MaxDps.toc | 2 +- helper.lua | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MaxDps.toc b/MaxDps.toc index a0481b6..a7f9dac 100644 --- a/MaxDps.toc +++ b/MaxDps.toc @@ -1,6 +1,6 @@ ## Title: MaxDps ## Notes: Rotation helper framework. -## Version: 7.3.0 +## Version: 7.3.0.1 ## Author: Kaminaris ## Interface: 70300 ## SavedVariables: MaxDpsOptions diff --git a/helper.lua b/helper.lua index fb5691b..7f5973b 100644 --- a/helper.lua +++ b/helper.lua @@ -90,12 +90,12 @@ end function MaxDps:TargetAura(name, timeShift) timeShift = timeShift or 0; local spellName = GetSpellInfo(name) or name; - local _, _, _, _, _, _, expirationTime = UnitAura('target', spellName, nil, 'PLAYER|HARMFUL'); + local _, _, _, count, _, _, expirationTime = UnitAura('target', spellName, nil, 'PLAYER|HARMFUL'); if expirationTime ~= nil and (expirationTime - GetTime()) > timeShift then local cd = expirationTime - GetTime() - (timeShift or 0); - return true, cd; + return true, cd, count; end - return false, 0; + return false, 0, 0; end function MaxDps:EndCast(target) -- 1.7.9.5