Quantcast

v1.18 - support for persistent auras

Pawel [11-11-16 - 05:12]
v1.18 - support for persistent auras
Filename
TDDps.toc
TDHelper.lua
diff --git a/TDDps.toc b/TDDps.toc
index ca0b620..b022090 100644
--- a/TDDps.toc
+++ b/TDDps.toc
@@ -1,8 +1,8 @@
 ## Title: TDDps
 ## Notes: Rotation helper framework.
-## Version: 1.17
+## Version: 1.18
 ## Author: Kaminaris
-## Interface: 70000
+## Interface: 70100
 ## SavedVariables: TDDps_Options
 ## OptionalDependencies: Bartender4, ElvUI, ButtonForge, SVUI_ActionBars

diff --git a/TDHelper.lua b/TDHelper.lua
index cad6210..eb6ecfc 100644
--- a/TDHelper.lua
+++ b/TDHelper.lua
@@ -43,6 +43,18 @@ end
 ----------------------------------------------
 -- Is aura on player
 ----------------------------------------------
+function TD_PersistentAura(name)
+	local spellName = GetSpellInfo(name);
+	local aura, _, _, count = UnitAura('player', spellName);
+	if aura then
+		return true, count;
+	end
+	return false, 0;
+end
+
+----------------------------------------------
+-- Is aura on player
+----------------------------------------------
 function TD_Aura(name, timeShift)
 	timeShift = timeShift or 0.2;
 	local spellName = GetSpellInfo(name);