From 20a3f190195e2a827ff46f238a4683fb2bf50878 Mon Sep 17 00:00:00 2001 From: Xinhuan Date: Fri, 10 Oct 2008 11:53:08 +0800 Subject: [PATCH] Temporary fix to line 660 nil index error. --- Omen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Omen.lua b/Omen.lua index c40d9e6..3c032e3 100644 --- a/Omen.lua +++ b/Omen.lua @@ -656,7 +656,7 @@ function Omen:UpdateBars() -- Figure out which mob to show threat on, either "target" or "targettarget" -- It has to be attackable and not human controlled, otherwise return local mob = "target" - if UnitIsPlayer(mob) or UnitPlayerControlled(mob) or not UnitCanAttack("player", mob) then + if UnitExists(mob) and (UnitIsPlayer(mob) or UnitPlayerControlled(mob) or not UnitCanAttack("player", mob)) then guidNameLookup[UnitGUID(mob)] = UnitName(mob) mob = "targettarget" end