libcast: correct channel delay calculation

This commit is contained in:
shagu
2018-11-10 13:34:28 +01:00
parent e96ecfd9fb
commit 3db0f569b9
+3 -1
View File
@@ -214,7 +214,9 @@ libcast:SetScript("OnEvent", function()
this.db[player].channel = nil
end
elseif event == "SPELLCAST_CHANNEL_UPDATE" then
this.db[player].start = this.db[player].start - arg1 / 1000
if this.db[player].cast then
this.db[player].start = -this.db[player].casttime/1000 + GetTime() + arg1/1000
end
-- Fill database with environmental casts
elseif arg1 then
-- (.+) begins to cast (.+).