From 421cd8d86b4905b8061a7de324fd716c0a7f51bf Mon Sep 17 00:00:00 2001 From: Xinhuan Date: Mon, 13 Jul 2009 02:30:23 +0800 Subject: [PATCH] Fix GetShapeShiftFormInfo() error that occurs for DKs when they aren't in any presence. This occurs when they respec between their primary/secondary specs and the game drops them out of all presences and subsequently enter combat presence-less. --- Omen.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Omen.lua b/Omen.lua index eca0163..117cacc 100644 --- a/Omen.lua +++ b/Omen.lua @@ -1646,7 +1646,7 @@ function Omen:UpdateBarsReal() if not t.DisableWhileTanking or not (myClass == "WARRIOR" and GetBonusBarOffset() == 2 or myClass == "DRUID" and GetBonusBarOffset() == 3 or myClass == "PALADIN" and UnitAura("player", GetSpellInfo(25780)) or - myClass == "DEATHKNIGHT" and GetShapeshiftFormInfo(GetShapeshiftForm()) == "Interface\\Icons\\Spell_Deathknight_FrostPresence") then + myClass == "DEATHKNIGHT" and GetShapeshiftForm() ~= 0 and GetShapeshiftFormInfo(GetShapeshiftForm()) == "Interface\\Icons\\Spell_Deathknight_FrostPresence") then self:Warn(t.Sound, t.Flash, t.Shake, t.Message and L["Passed %s%% of %s's threat!"]:format(t.Threshold, guidNameLookup[lastWarn.tankGUID])) end end