mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-16 01:50:48 +00:00
remove select
This commit is contained in:
+2
-4
@@ -511,8 +511,7 @@ function libpredict:ParseComm(sender, msg)
|
|||||||
|
|
||||||
local unit = senderUnit()
|
local unit = senderUnit()
|
||||||
if not unit then return end
|
if not unit then return end
|
||||||
local startMs = select(4, C_Spell.UnitCastingInfo(unit))
|
local _, _, _, startMs, endMs = C_Spell.UnitCastingInfo(unit)
|
||||||
local endMs = select(5, C_Spell.UnitCastingInfo(unit))
|
|
||||||
if not startMs or not endMs then return end
|
if not startMs or not endMs then return end
|
||||||
time = (endMs - startMs) / 1000
|
time = (endMs - startMs) / 1000
|
||||||
elseif msgtype == 1 then
|
elseif msgtype == 1 then
|
||||||
@@ -523,8 +522,7 @@ function libpredict:ParseComm(sender, msg)
|
|||||||
target = {strsplit(":", string.sub(msg,9, -1))}
|
target = {strsplit(":", string.sub(msg,9, -1))}
|
||||||
local unit = senderUnit()
|
local unit = senderUnit()
|
||||||
if not unit then return end
|
if not unit then return end
|
||||||
local startMs = select(4, C_Spell.UnitCastingInfo(unit))
|
local _, _, _, startMs, endMs = C_Spell.UnitCastingInfo(unit)
|
||||||
local endMs = select(5, C_Spell.UnitCastingInfo(unit))
|
|
||||||
if not startMs or not endMs then return end
|
if not startMs or not endMs then return end
|
||||||
time = (endMs - startMs) / 1000
|
time = (endMs - startMs) / 1000
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user