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,25 @@
EVERY FRAME TRIGGER
function()
local charges = GetSpellCharges("Shield of the Righteous")
if charges ~= aura_env.oldcharges then
aura_env.time = (GetTime() * 1000) + 250
aura_env.oldcharges = charges
return true
end
aura_env.oldcharges = charges
if aura_env.time > GetTime() * 1000 then
return true
else
return false
end
end
DISPLAY
function()
local charges = GetSpellCharges("Shield of the Righteous")
return charges
end
INIT
aura_env.time = GetTime()
aura_env.oldcharges = 0