File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 30
30
31
31
function addon :GetCastbarFrame (unitID )
32
32
-- PoolManager:DebugInfo()
33
- if unitID == " player" then return end
33
+ if unitID == " player" then return end -- no point returning CastingBarFrame here, we only skin it, not replace it and its events
34
34
35
35
if activeFrames [unitID ] then
36
36
return activeFrames [unitID ]
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ function TestMode:SetCastbarMovable(unitID, parent)
112
112
return false
113
113
end
114
114
115
- local castbar = ClassicCastbars :GetCastbarFrame (unitID )
115
+ local castbar = unitID == " player " and _G . CastingBarFrame or ClassicCastbars :GetCastbarFrame (unitID )
116
116
if unitID ~= " nameplate-testmode" then -- Blizzard broke drag functionality for frames that are anchored to restricted frames in TBC :(
117
117
castbar :SetMovable (true )
118
118
castbar :SetClampedToScreen (true )
@@ -177,7 +177,7 @@ function TestMode:SetCastbarMovable(unitID, parent)
177
177
end
178
178
179
179
function TestMode :SetCastbarImmovable (unitID )
180
- local castbar = ClassicCastbars :GetCastbarFrame (unitID )
180
+ local castbar = unitID == " player " and _G . CastingBarFrame or ClassicCastbars :GetCastbarFrame (unitID )
181
181
castbar :Hide ()
182
182
if castbar .tooltip then
183
183
castbar .tooltip :Hide ()
You can’t perform that action at this time.
0 commit comments