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