totem tracking
mateuszgrochowski opened this issue ยท 2 comments
Hey there! Could someone give me an example rule for my Vesper Totem (324385) to be green-highlighted when it is on (30 sec)?
You might try something like that as a custom rule:
return Configure {
'SadJamesBondTotem',
L['Show the duration of @NAME.'],
324386, -- Vesper Totem
'player',
'PLAYER_TOTEM_UPDATE',
(function()
local vesper = GetSpellInfo(324386)
return function(_, model)
for slot = 1, 5 do
local found, name, start, duration = GetTotemInfo(slot)
if found and name == vesper then
model.expiration = start + duration
model.highlight = 'good'
break
end
end
end
end)()
}
Dry-coded, haven't tested in-game.