turtle-wow: update immolate duration on conflagrate

based on https://github.com/shagu/pfUI/commit/b56836d2eb94ef93c7c89cdc9016cda462768b81
This commit is contained in:
shagu
2024-11-06 13:27:47 +01:00
parent ce895adb1b
commit d900008c1f
+10
View File
@@ -88,6 +88,16 @@ libdebuff_twow:SetScript("OnEvent", function()
end
end
end
-- refresh Immolate duration after cast Conflagrate
if string.find(arg1, "Conflagrate") then
local name = UnitName("target")
local level = UnitLevel("target")
if libdebuff.objects[name] and libdebuff.objects[name][level] and libdebuff.objects[name][level]["Immolate"] then
local duration = libdebuff.objects[name][level]["Immolate"].duration
libdebuff:UpdateDuration(name, level, "Immolate", duration - 3)
end
end
end)
-- Turtle WoW Item Vendor Prices