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 Dec 9, 2022
1 parent e8b3fd0 commit a65f57f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 15 deletions.
5 changes: 2 additions & 3 deletions ShestakUI/Modules/Auras/Filger.lua
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,8 @@ function Filger:OnEvent(event, unit, _, castID)
start, duration = GetInventoryItemCooldown("player", data.slotID)
end
end
if T.Classic and not T.Wrath341 and HasWandEquipped() then
local wandID = GetInventoryItemID("player", 18)
local wandSpeed = select(2, GetItemCooldown(wandID)) or 0
if T.Classic and HasWandEquipped() then
local wandSpeed = select(2, GetInventoryItemCooldown("player", 18)) 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
10 changes: 4 additions & 6 deletions ShestakUI/Modules/Blizzard/Bags.lua
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,8 @@ function Stuffing:SlotUpdate(b)

if b.cooldown and StuffingFrameBags and StuffingFrameBags:IsShown() then
local start, duration, enable = GetContainerItemCooldown(b.bag, b.slot)
if T.Classic and not T.Wrath341 and HasWandEquipped() then
local wandID = GetInventoryItemID("player", 18)
local wandSpeed = GetItemCooldown(wandID)
if T.Classic and HasWandEquipped() then
local wandSpeed = select(2, GetInventoryItemCooldown("player", 18)) or 0
if wandSpeed == 0 then
CooldownFrame_Set(b.cooldown, start, duration, enable)
else
Expand Down Expand Up @@ -353,9 +352,8 @@ end
function Stuffing:UpdateCooldowns(b)
if b.cooldown and StuffingFrameBags and StuffingFrameBags:IsShown() then
local start, duration, enable = GetContainerItemCooldown(b.bag, b.slot)
if T.Classic and not T.Wrath341 and HasWandEquipped() then
local wandID = GetInventoryItemID("player", 18)
local wandSpeed = GetItemCooldown(wandID)
if T.Classic and HasWandEquipped() then
local wandSpeed = select(2, GetInventoryItemCooldown("player", 18)) or 0
if wandSpeed == 0 then
CooldownFrame_Set(b.cooldown, start, duration, enable)
else
Expand Down
5 changes: 2 additions & 3 deletions ShestakUI/Modules/Cooldowns/EnemyCD.lua
Original file line number Diff line number Diff line change
Expand Up @@ -131,9 +131,8 @@ local StartTimer = function(sGUID, sID, sName)
icon:SetScript("OnUpdate", IconUpdate)
icon:SetScript("OnEnter", OnEnter)
icon:SetScript("OnLeave", GameTooltip_Hide)
if T.Classic and not T.Wrath341 and HasWandEquipped() then
local wandID = GetInventoryItemID("player", 18)
local wandSpeed = GetItemCooldown(wandID)
if T.Classic and HasWandEquipped() then
local wandSpeed = select(2, GetInventoryItemCooldown("player", 18)) 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
5 changes: 2 additions & 3 deletions ShestakUI/Modules/Quests/AutoButton.lua
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,8 @@ Scanner:SetScript("OnEvent", function()

AutoButton:SetScript("OnUpdate", function()
local cd_start, cd_finish, cd_enable = GetContainerItemCooldown(b, s)
if T.Classic and not T.Wrath341 then
local wandID = GetInventoryItemID("player", 18)
local wandSpeed = GetItemCooldown(wandID)
if T.Classic then
local wandSpeed = select(2, GetInventoryItemCooldown("player", 18)) 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 a65f57f

Please sign in to comment.