Add shard counter

This commit is contained in:
2024-04-13 16:22:49 +02:00
parent 0498808166
commit cbd2c60cf2
7 changed files with 103 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
-- 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