Temporary fix to line 660 nil index error.

This commit is contained in:
Xinhuan
2008-10-10 11:53:08 +08:00
parent a256497c81
commit 20a3f19019
+1 -1
View File
@@ -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