mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-25 09:06:03 +00:00
remove select
This commit is contained in:
+2
-4
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user