Skip to content

Commit

Permalink
Swap to other means of obtaining wand status in Classic
Browse files Browse the repository at this point in the history
  • Loading branch information
EsreverWoW committed Nov 26, 2023
1 parent 44cca8e commit 5a11af4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 5 deletions.
3 changes: 2 additions & 1 deletion ShestakUI/Modules/Auras/Filger.lua
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,8 @@ function Filger:OnEvent(event, unit, _, castID)
end
end
if T.Classic and HasWandEquipped() then
local wandSpeed = select(2, GetInventoryItemCooldown("player", 18)) or 0
local wandID = GetInventoryItemID("player", 18)
local wandSpeed = select(2, C_Container.GetItemCooldown(wandID)) or 0
if wandSpeed < 1.5 then wandSpeed = 1.5 end
if name and (duration or 0) > wandSpeed then
if not (T.class == "DEATHKNIGHT" and data.filter == "CD" and duration < 10) then -- Filter rune cd
Expand Down
6 changes: 4 additions & 2 deletions ShestakUI/Modules/Blizzard/Bags.lua
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,8 @@ function Stuffing:SlotUpdate(b)
if b.cooldown and StuffingFrameBags and StuffingFrameBags:IsShown() then
local start, duration, enable = C_Container.GetContainerItemCooldown(b.bag, b.slot)
if T.Classic and HasWandEquipped() then
local wandSpeed = select(2, GetInventoryItemCooldown("player", 18)) or 0
local wandID = GetInventoryItemID("player", 18)
local wandSpeed = select(2, C_Container.GetItemCooldown(wandID)) or 0
if wandSpeed == 0 then
CooldownFrame_Set(b.cooldown, start, duration, enable)
else
Expand Down Expand Up @@ -383,7 +384,8 @@ function Stuffing:UpdateCooldowns(b)
if b.cooldown and StuffingFrameBags and StuffingFrameBags:IsShown() then
local start, duration, enable = C_Container.GetContainerItemCooldown(b.bag, b.slot)
if T.Classic and HasWandEquipped() then
local wandSpeed = select(2, GetInventoryItemCooldown("player", 18)) or 0
local wandID = GetInventoryItemID("player", 18)
local wandSpeed = select(2, C_Container.GetItemCooldown(wandID)) or 0
if wandSpeed == 0 then
CooldownFrame_Set(b.cooldown, start, duration, enable)
else
Expand Down
3 changes: 2 additions & 1 deletion ShestakUI/Modules/Cooldowns/EnemyCD.lua
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ local StartTimer = function(sGUID, sID, sName)
icon:SetScript("OnEnter", OnEnter)
icon:SetScript("OnLeave", GameTooltip_Hide)
if T.Classic and HasWandEquipped() then
local wandSpeed = select(2, GetInventoryItemCooldown("player", 18)) or 0
local wandID = GetInventoryItemID("player", 18)
local wandSpeed = select(2, C_Container.GetItemCooldown(wandID)) or 0
if wandSpeed < 1.5 then wandSpeed = 1.5 end
if (T.enemy_spells[sID] or 0) > wandSpeed then
return CooldownFrame_Set(icon.Cooldown, GetTime(), T.EnemySpells[sID], 1)
Expand Down
3 changes: 2 additions & 1 deletion ShestakUI/Modules/Quests/AutoButton.lua
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ local function startScanningBags()
AutoButton:SetScript("OnUpdate", function()
local cd_start, cd_finish, cd_enable = C_Container.GetContainerItemCooldown(b, s)
if T.Classic then
local wandSpeed = select(2, GetInventoryItemCooldown("player", 18)) or 0
local wandID = GetInventoryItemID("player", 18)
local wandSpeed = select(2, C_Container.GetItemCooldown(wandID)) or 0
if wandSpeed < 1.5 then wandSpeed = 1.5 end
if (cd_finish or 0) > wandSpeed then
return CooldownFrame_Set(AutoButton.cd, cd_start, cd_finish, cd_enable)
Expand Down

0 comments on commit 5a11af4

Please sign in to comment.