Quantcast

Only show advise frames when target is hostile

Taracque [10-17-14 - 21:58]
Only show advise frames when target is hostile
Filename
Elementarist.lua
diff --git a/Elementarist.lua b/Elementarist.lua
index d7ee2d5..4ac0ab8 100755
--- a/Elementarist.lua
+++ b/Elementarist.lua
@@ -828,7 +828,7 @@ function Elementarist:DecideSpells()

 	local guid = UnitGUID("target")
 	local guid = UnitGUID("target")
-	if  (UnitName("target") == nil) or (UnitCanAttack("player","target") == nil) or (UnitHealth("target") == 0) then
+	if  (UnitName("target") == nil) or (not UnitCanAttack("player","target")) or (UnitHealth("target") == 0) then
 		guid = nil
 	end