Skip to content

Commit

Permalink
lock special cast to classic
Browse files Browse the repository at this point in the history
  • Loading branch information
kodewdle committed Nov 28, 2024
1 parent 779b5d0 commit f187654
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 14 deletions.
15 changes: 8 additions & 7 deletions ElvUI_Libraries/Core/oUF/elements/castbar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -115,13 +115,14 @@ local GetUnitEmpowerHoldAtMaxTime = GetUnitEmpowerHoldAtMaxTime
-- GLOBALS: CastingBarFrame, CastingBarFrame_OnLoad, CastingBarFrame_SetUnit

local tradeskillCurrent, tradeskillTotal, mergeTradeskill = 0, 0, false
local specialCast = { -- ms duration
[2643] = 500, -- Multishot
[14288] = 500, -- Multishot
[14289] = 500, -- Multishot
[14290] = 500, -- Multishot
[19434] = 3000, -- Aimed Shot
}
local specialCast = {} -- ms duration
if oUF.isClassic then
specialCast[2643] = 500 -- Multishot
specialCast[14288] = 500 -- Multishot
specialCast[14289] = 500 -- Multishot
specialCast[14290] = 500 -- Multishot
specialCast[19434] = 3000 -- Aimed Shot
end
-- end block

local function resetAttributes(self)
Expand Down
20 changes: 13 additions & 7 deletions ElvUI_Libraries/Core/oUF/init.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
local _, ns = ...
ns.oUF = {}
ns.oUF.Private = {}
local oUF = { Private = {} }
ns.oUF = oUF

ns.oUF.isRetail = WOW_PROJECT_ID == WOW_PROJECT_MAINLINE
ns.oUF.isClassic = WOW_PROJECT_ID == WOW_PROJECT_CLASSIC
ns.oUF.isTBC = WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC
ns.oUF.isWrath = WOW_PROJECT_ID == WOW_PROJECT_WRATH_CLASSIC
ns.oUF.isCata = WOW_PROJECT_ID == WOW_PROJECT_CATACLYSM_CLASSIC
oUF.isTBC = WOW_PROJECT_ID == WOW_PROJECT_BURNING_CRUSADE_CLASSIC -- not used
oUF.isCata = WOW_PROJECT_ID == WOW_PROJECT_CATACLYSM_CLASSIC
oUF.isWrath = WOW_PROJECT_ID == WOW_PROJECT_WRATH_CLASSIC
oUF.isRetail = WOW_PROJECT_ID == WOW_PROJECT_MAINLINE
oUF.isClassic = WOW_PROJECT_ID == WOW_PROJECT_CLASSIC

local season = C_Seasons and C_Seasons.GetActiveSeason()
oUF.isClassicHC = season == 3 -- Hardcore
oUF.isClassicSOD = season == 2 -- Season of Discovery
oUF.isClassicAnniv = season == 11 -- Anniversary
oUF.isClassicAnnivHC = season == 12 -- Anniversary Hardcore

0 comments on commit f187654

Please sign in to comment.