add error catcher and fix libdebuff accesses

This commit is contained in:
Jrc13245
2025-12-26 16:42:58 -05:00
parent 145ed92f77
commit 8d39ae75c2
3 changed files with 50 additions and 19 deletions
+2 -1
View File
@@ -154,7 +154,8 @@ function Extension.HookPfUILibdebuff()
pflib.AddEffect = function(self, unit, unitlevel, effect, duration, caster)
-- RANK CHECKING: Preserve higher rank's remaining time if lower rank was cast
-- NOTE: 'unit' is a unit NAME (e.g., "Expert Training Dummy"), not a unit ID
if caster == "player" and CleveRoids.libdebuff and duration and duration > 0 then
-- Defensive: verify libdebuff is a table, not a function
if caster == "player" and type(CleveRoids.libdebuff) == "table" and duration and duration > 0 then
-- Try to find the GUID for this unit name
local unitGUID = nil