bug patch
Steven Jackson [08-26-14 - 01:04]
diff --git a/Interface/AddOns/SVUI_ArtOfWar/SVUI_ArtOfWar.lua b/Interface/AddOns/SVUI_ArtOfWar/SVUI_ArtOfWar.lua
index 094a800..f519e1f 100644
--- a/Interface/AddOns/SVUI_ArtOfWar/SVUI_ArtOfWar.lua
+++ b/Interface/AddOns/SVUI_ArtOfWar/SVUI_ArtOfWar.lua
@@ -222,13 +222,14 @@ local function ClearSavedScans()
end
local function EnemyAlarm(name, class, colors, kos)
+ if not name then return end
local inInstance, instanceType = IsInInstance()
if(instanceType ~= "pvp" and not AlertedCache[name]) then
local msg
if(kos) then
msg = ("Mortal Enemy Detected!: %s"):format(name);
HeadsUpAlarm(msg, CombatText_StandardScroll, 1, 0, 0)
- else
+ elseif(class and colors) then
msg = ("%s Detected"):format(class);
HeadsUpAlarm(msg, CombatText_StandardScroll, colors.r, colors.g, colors.b)
end