This commit is contained in:
2024-08-24 22:41:08 +02:00
parent 77f1ac5d7a
commit c21f59778f
431 changed files with 68581 additions and 68581 deletions

View File

@@ -1,24 +1,24 @@
-- UNIT_SPELLCAST_SENT
---@param allstates allstates
---@param e string
---@param source string
---@param spellname string
---@param _ string
---@param target string
function(allstates, e, source, spellname, _, target)
if source ~= "player" then return end
if spellname ~= "Mining" then return end
if aura_env.depositIterator[target] == nil then aura_env.depositIterator[target] = 0 end
local state = {
changed = true,
show = true,
progressType = "timed",
autoHide = true,
duration = aura_env.cooldown,
expirationTime = GetTime() + aura_env.cooldown,
name = string.format("%s #%d", target, aura_env.depositIterator[target]),
}
allstates[aura_env.depositIterator[target]] = state
aura_env.depositIterator[target] = aura_env.depositIterator[target] + 1
return true
-- UNIT_SPELLCAST_SENT
---@param allstates allstates
---@param e string
---@param source string
---@param spellname string
---@param _ string
---@param target string
function(allstates, e, source, spellname, _, target)
if source ~= "player" then return end
if spellname ~= "Mining" then return end
if aura_env.depositIterator[target] == nil then aura_env.depositIterator[target] = 0 end
local state = {
changed = true,
show = true,
progressType = "timed",
autoHide = true,
duration = aura_env.cooldown,
expirationTime = GetTime() + aura_env.cooldown,
name = string.format("%s #%d", target, aura_env.depositIterator[target]),
}
allstates[aura_env.depositIterator[target]] = state
aura_env.depositIterator[target] = aura_env.depositIterator[target] + 1
return true
end