Quantcast

Always use "player" as unit.

Christopher Rosell [02-25-14 - 15:49]
Always use "player" as unit.
Filename
DamnVESpam.lua
diff --git a/DamnVESpam.lua b/DamnVESpam.lua
index b6d0662..44ef231 100644
--- a/DamnVESpam.lua
+++ b/DamnVESpam.lua
@@ -11,7 +11,7 @@ addon:SetScript("OnEvent", function(self, e, arg)
 	if (e == "UNIT_AURA" and arg == "player") or
 	   (e == "ADDON_LOADED" and arg == addonname) then

-		if UnitAura(arg, spellname) then
+		if UnitAura("player", spellname) then
 			SetCVar("CombatHealing", 0)
 		else
 			SetCVar("CombatHealing", 1)