from retail

This commit is contained in:
NoM0Re
2025-01-10 19:24:25 +01:00
parent a747346a9d
commit 4c4b84863f
10 changed files with 160 additions and 33 deletions
+3 -2
View File
@@ -6267,8 +6267,9 @@ Private.event_prototypes = {
{
name = L["Latency"],
func = function(trigger, state)
if not Private.LAST_CURRENT_SPELL_CAST_START or not Private.LAST_CURRENT_SPELL_CAST_CHANGED then return 0, 0 end
return 0, Private.LAST_CURRENT_SPELL_CAST_START - Private.LAST_CURRENT_SPELL_CAST_CHANGED
local latency = WeakAuras.GetCastLatency()
if not latency then return 0, 0 end
return 0, latency
end,
enable = function(trigger)
return trigger.use_showLatency and trigger.unit == "player"