(fix/prototypes) item count, item equipped, cooldown/charges/count

This commit is contained in:
NoM0Re
2025-02-08 15:05:57 +01:00
parent 5cdb9aed28
commit 0ee4e79d36
3 changed files with 72 additions and 105 deletions
+2 -2
View File
@@ -2382,7 +2382,7 @@ do
local unit, name, _ = ...;
if(unit == "player") then
if(gcdSpellName ~= name) then
local icon = GetSpellTexture(name);
local _,_,icon = GetSpellInfo(name or 0);
gcdSpellName = name;
gcdSpellIcon = icon;
if not WeakAuras.IsPaused() then
@@ -2390,7 +2390,7 @@ do
end
end
end
elseif(event == "UNIT_INVENTORY_CHANGED" and ... and ... == "player" or event == "BAG_UPDATE_COOLDOWN" or event == "PLAYER_EQUIPMENT_CHANGED") then
elseif(event == "UNIT_INVENTORY_CHANGED" and ... == "player" or event == "BAG_UPDATE_COOLDOWN" or event == "PLAYER_EQUIPMENT_CHANGED") then
Private.CheckItemSlotCooldowns();
end
Private.StopProfileSystem("generictrigger cd tracking");