Files
wow-weakauras/FreshShit/ShardCounter/event2.lua
2024-04-13 16:33:46 +02:00

13 lines
382 B
Lua

-- UNIT_POWER
function(e, unit, power)
if unit ~= "player" then return end
if power ~= "SOUL_SHARDS" then return end
local soulShards = UnitPower("player", 7)
if soulShards == aura_env.SoulShards then return end
if soulShards < aura_env.SoulShards then
aura_env.SoulShards = soulShards
return
end
aura_env.SoulShards = soulShards
aura_env.SoulShardStack:Push(time())
end