Call as
Conditions.totem.remaining(record, start)
Record the dependency Conditions.totem.remaining, then call it by that name. A namespaced call does not pass self: use a colon call or pass the object yourself.
What it does
Seconds left on a totem slot record at time start (or now): zero when the totem is inactive, and never negative.
Arguments
| Name | Type | What it does |
|---|---|---|
record | table | Totem record with active, startTime and duration fields. |
start | number | nil | Time to measure from; nil uses GetTime(). |
Returns
| 1 | number | Remaining seconds. |
|---|
Editions
Built In helpers are registered on every edition. What differs is the game API they read; where one is missing the helper falls back or returns nil with a reason.
- Not available on that edition (the reason is in the tooltip)
- Only while Blizzard's deprecation fallbacks are on
| Game API | |||||
|---|---|---|---|---|---|
GetTime |
How the addon calls it
- Totem Present (evaluate)
return record.active and remaining(record,start)>0 - Totem Time Remaining (evaluate)
local seconds=remaining(record,start) Conditions.totem.findSpecificelseif record.active and remaining(record,start)>0 then
Source
Conditions/totem.lua, line 62. Read only in game; Duplicate makes an editable copy.
Conditions.totem.remaining(record, start)
if not record.active then return 0 end
return math.max(0,record.startTime+record.duration-(start or GetTime()))




