Add new code snippets

This commit is contained in:
2024-03-03 13:50:12 +01:00
commit 01b612a50b
409 changed files with 65292 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
--DISPLAY
function()
if GetSpecialization() == 1 then
local AP = select(4, UnitDebuff("focus", "Judgment of Light")) or 0
return AP
end
if GetSpecialization() == 2 then
local AP = 0
for i = 1, 40 do
if UnitExists("nameplate" .. i) and UnitDebuff("nameplate" .. i,"Judgment of Light") then
local APP = select(4, UnitDebuff("nameplate" .. i, "Judgment of Light")) or 0
AP = AP + APP
end
end
return AP
end
end

View File

@@ -0,0 +1,25 @@
--TRIGGER
function()
return true
end
--DURATION
function()
if GetSpecialization() == 1 then
local AP = select(4, UnitDebuff("focus", "Judgment of Light")) or 0
local maxAP = 40
return AP, maxAP, 1
end
if GetSpecialization() == 2 then
local AP = 0
local maxAP = 0
for i = 1, 40 do
if UnitExists("nameplate" .. i) and UnitDebuff("nameplate" .. i,"Judgment of Light") then
local APP = select(4, UnitDebuff("nameplate" .. i, "Judgment of Light")) or 0
maxAP = maxAP + 40
AP = AP + APP
end
end
end
return AP, maxAP, 1
end

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,25 @@
--TRIGGER
function()
return true --always on
end
--DURATION
function()
if GetSpecialization() == 1 then
local AP = select(4, UnitDebuff("focus", "Judgment of Light")) or 0
local maxAP = 40
return maxAP - AP, maxAP, 1
end
if GetSpecialization() == 2 then
local AP = 0
local maxAP = 0
for i = 1, 40 do
if UnitExists("nameplate" .. i) and UnitDebuff("nameplate" .. i,"Judgment of Light") then
local APP = select(4, UnitDebuff("nameplate" .. i, "Judgment of Light")) or 0
maxAP = maxAP + 40
AP = AP + APP
end
end
return maxAP - AP, maxAP, 1
end
end