From 0e8d7558d46cf8f348559bd54acd6496cc207f8b Mon Sep 17 00:00:00 2001 From: Taracque Date: Fri, 17 Oct 2014 23:58:07 +0200 Subject: [PATCH] Only show advise frames when target is hostile --- Elementarist.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.7.9.5