Error with new Ulduar Patch
CoreDi opened this issue ยท 2 comments
My favorite Addon has again Errors :( :
Message: Interface/AddOns/Forte_Cooldown/Forte_Cooldown.lua:702: attempt to call upvalue 'GetItemCooldown' (a nil value)
Time: Sat Jan 21 12:53:46 2023
Count: 2018
Stack: Interface/AddOns/Forte_Cooldown/Forte_Cooldown.lua:702: attempt to call upvalue 'GetItemCooldown' (a nil value)
Related Code:
local function CD_ScanActionCooldowns()
--FW:Debug("Scanning Actions");
local _,spell,start,duration,enabled,texture;
local what,id;
local applies;
for i=1, 120 do
what,id = GetActionInfo(i);
if what == "item" then
spell,_,_,_,_,_,_,_,_,texture = GetItemInfo(id);
if spell then
start,duration,applies = GetItemCooldown(id);
if applies == 1 then
local flag,name = CD_IsSpecialCooldown(spell);
CD:CheckCooldown(name or spell,start,duration,texture,flag or FLAG_ITEM);
end
end
elseif what == "spell" then
spell,texture = FW:SpellName(id);
start,duration,enabled = GetSpellCooldown(id);
if enabled == 1 then -- Number - 0 if the spell is active (Stealth, Shadowmeld, Presence of Mind, etc) and the cooldown will begin as soon as the spell is used/cancelled; 1 otherwise.
CD:CheckCooldown(spell,start,duration,texture,(CD_IsSpecialCooldown(spell)) or FLAG_SPELL);
end
end
end
for i=1,19,1 do -- all equipable
id = GetInventoryItemID("player",i);
if id then
spell,_,_,_,_,_,_,_,_,texture = GetItemInfo(id);
if spell then
start,duration,applies = GetItemCooldown(id);
if applies == 1 then
local flag,name = CD_IsSpecialCooldown(spell);
CD:CheckCooldown(name or spell,start,duration,texture,flag or FLAG_ITEM);
end
end
end
end
end
Maybe someone can support to fix it?
See my two Pull requests. Forte seems to be working again.
Still got one problem. The autohide function of the cooldown bar and the splash icon isn't working anymore.
Maybe someone else can look into. I'm not a lua programmer =P . Also the code is a mess
See my two Pull requests. Forte seems to be working again. Still got one problem. The autohide function of the cooldown bar and the splash icon isn't working anymore.
Maybe someone else can look into. I'm not a lua programmer =P . Also the code is a mess
Hi TeZwo, do you have the problem when warlock puts spellstone / lure on weapons / fishpole, it pops up Forte_Timer/Forte_Timer.lua:2391: attempt to perform arithmetic on local 't2' (a nil value)?