turtle-wow: fix nil error when NPC instantly die from Conflagrate

This commit is contained in:
Artur Morozov
2024-11-06 08:16:14 +01:00
committed by GitHub
parent 43d76e8d22
commit 7d61e278c1
+1 -1
View File
@@ -70,7 +70,7 @@ pfUI:RegisterModule("turtle-wow", "vanilla", function ()
if conflagrate and arg2 then
local name = UnitName("target")
local level = UnitLevel("target")
if libdebuff.objects[name][level]["Immolate"] then
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