mirror of
https://github.com/brues-code/pfUI.git
synced 2026-09-30 19:19:59 +00:00
turtle-wow: fix nil error when NPC instantly die from Conflagrate
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user