Temporary fix to line 660 nil index error.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user