This commit is contained in:
Bunny67
2020-06-04 23:20:52 +03:00
parent 99c1114efb
commit 26a968f932
9 changed files with 8 additions and 354 deletions
-9
View File
@@ -1424,7 +1424,6 @@ function WeakAuras.ShowDisplayTooltip(data, children, matchInfo, icon, icons, im
local hasDescription = data.desc and data.desc ~= "";
local hasUrl = data.url and data.url ~= "";
local hasVersion = (data.semver and data.semver ~= "") or (data.version and data.version ~= "");
local tocbuild = data.tocbuild;
if hasDescription or hasUrl or hasVersion then
tinsert(tooltip, {1, " "});
@@ -1591,14 +1590,6 @@ function WeakAuras.ShowDisplayTooltip(data, children, matchInfo, icon, icons, im
tinsert(tooltip, {1, L["It might not work correctly with your version!"], 1, 0, 0})
end
if WeakAuras.IsClassic() and (not tocbuild or tocbuild > 20000) then
tinsert(tooltip, {1, L["This aura was created with the retail version of World of Warcraft."], 1, 0, 0})
tinsert(tooltip, {1, L["It might not work correctly on Classic!"], 1, 0, 0})
elseif tocbuild and not WeakAuras.IsClassic() and tocbuild < 20000 then
tinsert(tooltip, {1, L["This aura was created with the Classic version of World of Warcraft."], 1, 0, 0})
tinsert(tooltip, {1, L["It might not work correctly on Retail!"], 1, 0, 0})
end
tinsert(tooltip, {2, " ", " ", 0, 1, 0})
tinsert(tooltip, {2, " ", " ", 0, 1, 0})