Skip to content

Commit 703a591

Browse files
committed
sanity checks
1 parent 888e38d commit 703a591

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

ClassicCastbars/core/PoolManager.lua

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,25 @@ local PoolManager = {}
44
namespace.PoolManager = PoolManager
55

66
local function ResetterFunc(pool, frame)
7+
if frame.isTesting then
8+
frame:StopMovingOrSizing()
9+
frame:EnableMouse(false)
10+
if frame.tooltip then
11+
frame.tooltip:Hide()
12+
end
13+
end
14+
15+
if frame.animationGroup and frame.animationGroup:IsPlaying() then
16+
frame.animationGroup:Stop()
17+
end
18+
719
frame:Hide()
820
frame:SetParent(nil)
921
frame:ClearAllPoints()
1022
frame.isTesting = false
1123
frame.isActiveCast = false
12-
13-
if frame.animationGroup and frame.animationGroup:IsPlaying() then
14-
frame.animationGroup:Stop()
15-
end
24+
frame.parent = nil
25+
frame.unitID = nil
1626
end
1727

1828
-- Note: don't add any major code reworks here, this codebase will soon be replaced with the player-castbar-v2 branch

0 commit comments

Comments
 (0)