From ee7c729bcbbc6e34719b7ee5abdb0acc0cf7ae19 Mon Sep 17 00:00:00 2001 From: Brues <5278969+brues-code@users.noreply.github.com> Date: Tue, 7 Jul 2026 09:16:33 -0500 Subject: [PATCH] remove select --- libs/libpredict.lua | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/libs/libpredict.lua b/libs/libpredict.lua index 57397882..5edcf897 100644 --- a/libs/libpredict.lua +++ b/libs/libpredict.lua @@ -511,8 +511,7 @@ function libpredict:ParseComm(sender, msg) local unit = senderUnit() if not unit then return end - local startMs = select(4, C_Spell.UnitCastingInfo(unit)) - local endMs = select(5, C_Spell.UnitCastingInfo(unit)) + local _, _, _, startMs, endMs = C_Spell.UnitCastingInfo(unit) if not startMs or not endMs then return end time = (endMs - startMs) / 1000 elseif msgtype == 1 then @@ -523,8 +522,7 @@ function libpredict:ParseComm(sender, msg) target = {strsplit(":", string.sub(msg,9, -1))} local unit = senderUnit() if not unit then return end - local startMs = select(4, C_Spell.UnitCastingInfo(unit)) - local endMs = select(5, C_Spell.UnitCastingInfo(unit)) + local _, _, _, startMs, endMs = C_Spell.UnitCastingInfo(unit) if not startMs or not endMs then return end time = (endMs - startMs) / 1000 end