So i wanna do new feature for my
addon, i wanna display Thunderforged (+) next to dropped item, for example if boss drop items [A B B+ A C], i have list in chat
1. Ax2
2. B
3. B+
4. C
Thing is, sometimes i fail to detect Thunderforge, and have no idea why.
Lua Code:
if LootTooltipTextLeft2:GetText() ~= nil then
if not (LootTooltipTextLeft2:GetText() == ITEM_HEROIC or LootTooltipTextLeft2:GetText() == ITEM_BIND_ON_PICKUP or LootTooltipTextLeft2:GetText():match(USE_COLON) or LootTooltipTextLeft2:GetText():match(ITEM_LEVEL)) then
upgrade[i] = LootTooltipTextLeft2:GetText()
end
end
Sometimes it work, sometimes dont.
If i do print after first "if", and there are tooltip line 2 for given item, it wont fire either
I was thinking i should track GET_ITEM_INFO_RECEIVED, but that cannot be case because when i click for same windows second time, its not working wither
My whole current lua file in attachment
(it is absolutly terrible piece of code, i would write it now with table of arrays and table.remove todetect duplicate drops, that would save me all those loops, problems with iteration i guess)
If someone would peek, i would appreciate