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.

This commit is contained in:
Xinhuan
2009-07-13 02:30:23 +08:00
parent c1b3a7a9ed
commit 421cd8d86b
+1 -1
View File
@@ -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