Commit 0b569842 authored by Blazeflack's avatar Blazeflack

Modify CastbarCustomBackdrop tweak to work with future release of ElvUI

This reverts commit eb357006.
parent eb357006
......@@ -96,6 +96,9 @@ f:SetScript("OnEvent", function(self)
if castbar then
hooksecurefunc(castbar, "PostCastStart", PostCastChannelStart)
hooksecurefunc(castbar, "PostCastInterruptible", PostCastInterruptible)
if tonumber(E.version) <= 10.87 then
hooksecurefunc(castbar, "PostChannelStart", PostCastChannelStart)
end
end
end
......@@ -104,6 +107,9 @@ f:SetScript("OnEvent", function(self)
if castbar then
hooksecurefunc(castbar, "PostCastStart", PostCastChannelStart)
hooksecurefunc(castbar, "PostCastInterruptible", PostCastInterruptible)
if tonumber(E.version) <= 10.87 then
hooksecurefunc(castbar, "PostChannelStart", PostCastChannelStart)
end
end
end
......@@ -112,6 +118,9 @@ f:SetScript("OnEvent", function(self)
if castbar then
hooksecurefunc(castbar, "PostCastStart", PostCastChannelStart)
hooksecurefunc(castbar, "PostCastInterruptible", PostCastInterruptible)
if tonumber(E.version) <= 10.87 then
hooksecurefunc(castbar, "PostChannelStart", PostCastChannelStart)
end
end
end
end)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment