Division by zero fix
This commit is contained in:
@@ -1588,7 +1588,7 @@
|
||||
|
||||
local class, _, _, _, _, r, g, b = _detalhes:GetClass(target [1])
|
||||
if (class and class ~= "UNKNOW") then
|
||||
local texture, l, r, t, b = _detalhes:GetClassIcon (class)
|
||||
local texture, l, r, t, b = _detalhes:GetClassIcon(class)
|
||||
GameCooltip:AddIcon ("Interface\\AddOns\\Details\\images\\classes_small_alpha", 1, 1, _detalhes.tooltip.line_height, _detalhes.tooltip.line_height, l, r, t, b)
|
||||
else
|
||||
GameCooltip:AddIcon ("Interface\\GossipFrame\\IncompleteQuestIcon", 1, 1, _detalhes.tooltip.line_height, _detalhes.tooltip.line_height)
|
||||
@@ -1722,7 +1722,7 @@
|
||||
|
||||
local class, _, _, _, _, r, g, b = _detalhes:GetClass(t [1])
|
||||
if (class and class ~= "UNKNOW") then
|
||||
local texture, l, r, t, b = _detalhes:GetClassIcon (class)
|
||||
local texture, l, r, t, b = _detalhes:GetClassIcon(class)
|
||||
GameCooltip:AddIcon ("Interface\\AddOns\\Details\\images\\classes_small_alpha", 1, 1, _detalhes.tooltip.line_height, _detalhes.tooltip.line_height, l, r, t, b)
|
||||
else
|
||||
GameCooltip:AddIcon ("Interface\\GossipFrame\\IncompleteQuestIcon", 1, 1, _detalhes.tooltip.line_height, _detalhes.tooltip.line_height)
|
||||
|
||||
@@ -667,12 +667,12 @@ end
|
||||
GameCooltip:AddStatusBar (t[2]/top*100, 1, r, g, b, 0.8, false, byspell_tooltip_background)
|
||||
|
||||
if (class) then
|
||||
local specID = Details:GetSpec (t[1])
|
||||
local specID = Details:GetSpec(t[1])
|
||||
if (specID) then
|
||||
local texture, l, r, t, b = Details:GetSpecIcon (specID, false)
|
||||
GameCooltip:AddIcon (texture, 1, 1, lineHeight, lineHeight, l, r, t, b)
|
||||
else
|
||||
local texture, l, r, t, b = Details:GetClassIcon (class)
|
||||
local texture, l, r, t, b = Details:GetClassIcon(class)
|
||||
GameCooltip:AddIcon ("Interface\\AddOns\\Details\\images\\classes_small_alpha", 1, 1, lineHeight, lineHeight, l, r, t, b)
|
||||
end
|
||||
|
||||
@@ -1093,7 +1093,7 @@ end
|
||||
GameCooltip:AddIcon ("Interface\\LFGFRAME\\LFGROLE_BW", nil, nil, lineHeight, lineHeight, .25, .5, 0, 1)
|
||||
else
|
||||
|
||||
local specID = Details:GetSpec (t[1])
|
||||
local specID = Details:GetSpec(t[1])
|
||||
if (specID) then
|
||||
local texture, l, r, t, b = Details:GetSpecIcon (specID, false)
|
||||
GameCooltip:AddIcon (texture, 1, 1, lineHeight, lineHeight, l, r, t, b)
|
||||
@@ -1499,7 +1499,7 @@ end
|
||||
|
||||
local classe = Details:GetClass(t[1])
|
||||
if (classe) then
|
||||
local specID = Details:GetSpec (t[1])
|
||||
local specID = Details:GetSpec(t[1])
|
||||
if (specID) then
|
||||
local texture, l, r, t, b = Details:GetSpecIcon (specID, false)
|
||||
GameCooltip:AddIcon (texture, 1, 1, lineHeight, lineHeight, l, r, t, b)
|
||||
@@ -3910,7 +3910,7 @@ function atributo_damage:ToolTip_FriendlyFire (instancia, numero, barra, keydown
|
||||
if (classe == "UNKNOW") then
|
||||
GameCooltip:AddIcon ("Interface\\AddOns\\Details\\images\\classes_small", nil, nil, lineHeight, lineHeight, unpack(Details.class_coords ["UNKNOW"]))
|
||||
else
|
||||
local specID = Details:GetSpec (DamagedPlayers[i][1])
|
||||
local specID = Details:GetSpec(DamagedPlayers[i][1])
|
||||
if (specID) then
|
||||
local texture, l, r, t, b = Details:GetSpecIcon (specID, false)
|
||||
GameCooltip:AddIcon (texture, 1, 1, lineHeight, lineHeight, l, r, t, b)
|
||||
|
||||
+482
-483
File diff suppressed because it is too large
Load Diff
@@ -1820,7 +1820,7 @@ function atributo_misc:ToolTipDefensiveCooldowns (instancia, numero, barra)
|
||||
if (classe == "UNKNOW") then
|
||||
GameCooltip:AddIcon ("Interface\\LFGFRAME\\LFGROLE_BW", nil, nil, 14, 14, .25, .5, 0, 1)
|
||||
else
|
||||
local specID = _detalhes:GetSpec (alvos[i][1])
|
||||
local specID = _detalhes:GetSpec(alvos[i][1])
|
||||
if (specID) then
|
||||
local texture, l, r, t, b = _detalhes:GetSpecIcon (specID, false)
|
||||
GameCooltip:AddIcon (texture, 1, 1, lineHeight, lineHeight, l, r, t, b)
|
||||
@@ -1900,7 +1900,7 @@ function atributo_misc:ToolTipRess (instancia, numero, barra)
|
||||
if (classe == "UNKNOW") then
|
||||
GameCooltip:AddIcon ("Interface\\LFGFRAME\\LFGROLE_BW", nil, nil, lineHeight, lineHeight, .25, .5, 0, 1)
|
||||
else
|
||||
local specID = _detalhes:GetSpec (alvos[i][1])
|
||||
local specID = _detalhes:GetSpec(alvos[i][1])
|
||||
if (specID) then
|
||||
local texture, l, r, t, b = _detalhes:GetSpecIcon (specID, false)
|
||||
GameCooltip:AddIcon (texture, 1, 1, lineHeight, lineHeight, l, r, t, b)
|
||||
|
||||
@@ -191,7 +191,7 @@
|
||||
end
|
||||
end
|
||||
|
||||
local _, engClass = _UnitClass (nome or "")
|
||||
local _, engClass = _UnitClass(nome or "")
|
||||
|
||||
if (engClass) then
|
||||
novo_objeto.classe = engClass
|
||||
|
||||
Reference in New Issue
Block a user