Add new code snippets
This commit is contained in:
18
Complete Projects/Legion/Spell Charges/01.lua
Normal file
18
Complete Projects/Legion/Spell Charges/01.lua
Normal 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"
|
||||
Reference in New Issue
Block a user