View Single Post
12-08-22, 11:14 AM   #6
fatrog
A Fallenroot Satyr
Join Date: Nov 2022
Posts: 21
Hello,

Thank you so much for explainations. And sorry for very late answer.

So, as you suggested, I have made it like this:

Lua Code:
  1. local function GetItemGCDInfos(tt)
  2.     ctt = TooltipUtil.GetDisplayedItem(tt)
  3.     gcdMS, cooldownMS, spellID, ItemLink = nil
  4.    
  5.     if ctt ~= nil then
  6.         _, ItemLink = ctt:GetItem()
  7.         _, spellID = GetItemSpell(ItemLink)
  8.     end
  9.    
  10.     if spellID ~= nil then
  11.         cooldownMS, gcdMS = GetSpellBaseCooldown(spellID)
  12.     end
  13.    
  14.     if gcdMS ~= nil then
  15.         SetNewLineWithGCD(ctt,gcdMS)
  16.     end
  17. end

Unfortunatly, I still got the same error (eg. when I get multiple tooltip like when I put my cursor over the suggested items in the "edit stuff" menu)

  Reply With Quote