from retail
This commit is contained in:
@@ -92,7 +92,7 @@ local WA_Utf8Sub = function(input, size)
|
||||
-- Add any bytes that are part of the sequence
|
||||
while (true) do
|
||||
local byte = input:byte(i)
|
||||
if byte >= 128 and byte < 192 then
|
||||
if byte and byte >= 128 and byte < 192 then
|
||||
output = output .. input:sub(i, i)
|
||||
else
|
||||
break
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -4603,7 +4603,7 @@ WeakAuras.event_prototypes = {
|
||||
local aggro, status, threatpct, rawthreatpct, threatvalue, threattotal
|
||||
if unit then
|
||||
aggro, status, threatpct, rawthreatpct, threatvalue = WeakAuras.UnitDetailedThreatSituation('player', unit)
|
||||
threattotal = (threatvalue or 0) * 100 / (threatpct or 1)
|
||||
threattotal = (threatvalue or 0) * 100 / (threatpct ~= 0 and threatpct or 1)
|
||||
else
|
||||
status = UnitThreatSituation('player')
|
||||
aggro = status == 2 or status == 3
|
||||
@@ -5722,7 +5722,7 @@ WeakAuras.dynamic_texts = {
|
||||
end
|
||||
end,
|
||||
func = function(duration, state, totalPrecision)
|
||||
if state.progressType ~= "timed" then
|
||||
if not state or state.progressType ~= "timed" then
|
||||
return duration
|
||||
end
|
||||
if type(duration) ~= "number" then
|
||||
@@ -5755,6 +5755,7 @@ WeakAuras.dynamic_texts = {
|
||||
},
|
||||
["n"] = {
|
||||
get = function(state)
|
||||
if not state then return "" end
|
||||
return state.name or state.id or "", true
|
||||
end,
|
||||
func = function(v)
|
||||
@@ -5763,6 +5764,7 @@ WeakAuras.dynamic_texts = {
|
||||
},
|
||||
["i"] = {
|
||||
get = function(state)
|
||||
if not state then return "" end
|
||||
return state.icon or "Interface\\Icons\\INV_Misc_QuestionMark"
|
||||
end,
|
||||
func = function(v)
|
||||
|
||||
@@ -1327,6 +1327,14 @@ WeakAuras.texture_types = {
|
||||
["Interface\\AddOns\\WeakAuras\\Media\\Textures\\target_indicator.tga"] = "Target Indicator",
|
||||
["Interface\\AddOns\\WeakAuras\\Media\\Textures\\target_indicator_glow.tga"] = "Target Indicator Glow",
|
||||
["Interface\\AddOns\\WeakAuras\\Media\\Textures\\arrows_target.tga"] = "Arrows Target",
|
||||
|
||||
["Interface\\AddOns\\WeakAuras\\Media\\Textures\\Circle_AlphaGradient_In.tga"] = "Circle Alpha Gradient In",
|
||||
["Interface\\AddOns\\WeakAuras\\Media\\Textures\\Circle_AlphaGradient_Out.tga"] = "Circle Alpha Gradient Out",
|
||||
["Interface\\AddOns\\WeakAuras\\Media\\Textures\\Ring_10px.tga"] = "Ring 10px",
|
||||
["Interface\\AddOns\\WeakAuras\\Media\\Textures\\Ring_20px.tga"] = "Ring 20px",
|
||||
["Interface\\AddOns\\WeakAuras\\Media\\Textures\\Ring_30px.tga"] = "Ring 30px",
|
||||
["Interface\\AddOns\\WeakAuras\\Media\\Textures\\Ring_40px.tga"] = "Ring 40px",
|
||||
["Interface\\AddOns\\WeakAuras\\Media\\Textures\\Square_AlphaGradient.tga"] = "Square Alpha Gradient",
|
||||
},
|
||||
["Sparks"] = {
|
||||
["Interface\\CastingBar\\UI-CastingBar-Spark"] = "Blizzard Spark",
|
||||
|
||||
Reference in New Issue
Block a user