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,18 @@
function() -- 0 - 1 CHARGE
local charges, max, cdstart, cddur = GetSpellCharges(aura_env.spell)
cdstart = cdstart * 1000
cddur = cddur * 1000
if exptime then
exptime = exptime * 1000
end
local time = GetTime() * 1000
if charges >= 1 then --FULL CHARGES RETURNS FULL BAR
return 1, 1, 1
end
if charges == 0 then --CHARGE 1 RECHARGING RETURNS COOLDOWN
local cd = time - cdstart
return cd, cddur, 1
end
end
aura_env.spell= "Judgment"