Make raid first-frame state deterministic

This commit is contained in:
Dusk-92
2026-08-30 10:30:50 +02:00
parent dbb7cd3f69
commit bd2186c87b
8 changed files with 91 additions and 42 deletions
+6 -1
View File
@@ -59,8 +59,10 @@ module.enable = function(self)
this.elapsed = 0
if ShaguTweaksRaidHeaders then
local foundHeader = false
for i = 1, 8 do
if ShaguTweaksRaidHeaders[i] then
foundHeader = true
local _, anchor = ShaguTweaksRaidHeaders[i]:GetPoint()
if anchor then
ShaguTweaksRaidHeaders[i]:ClearAllPoints()
@@ -72,7 +74,10 @@ module.enable = function(self)
end
end
end
this:Hide()
if foundHeader then
this:Hide()
end
elseif this.total >= 10 then
-- Fail closed instead of polling forever if headers never materialize.
this:Hide()