Skip to content

Commit

Permalink
Less specific checks on client version, check for functions instead
Browse files Browse the repository at this point in the history
  • Loading branch information
brittyazel committed Jul 26, 2024
1 parent c2cae07 commit 0b10405
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion EnhancedRaidFrames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ end
function EnhancedRaidFrames:RefreshConfig()
self:GenerateAuraStrings()
self:UpdateScale()
if not self.isWoWClassicEra and not self.isWoWClassic then
if CompactRaidFrameContainer and CompactRaidFrameContainer.ApplyToFrames then
-- 10.0 refactored CompactRaidFrameContainer with new functionality
CompactRaidFrameContainer:ApplyToFrames("normal", function(frame)
self:UpdateIndicators(frame, true)
Expand Down
4 changes: 2 additions & 2 deletions Modules/AuraIndicators.lua
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ end
--- Update all mouse behavior for all indicators
--- This is used to update all indicators when the user changes the mouseoverCastCompat option
function EnhancedRaidFrames:SetAllMouseBehavior()
if not self.isWoWClassicEra and not self.isWoWClassic then
if CompactRaidFrameContainer and CompactRaidFrameContainer.ApplyToFrames then
-- 10.0 refactored CompactRaidFrameContainer with new functionality
CompactRaidFrameContainer:ApplyToFrames("normal", function(frame)
self:SetMouseBehavior(frame)
Expand Down Expand Up @@ -203,7 +203,7 @@ function EnhancedRaidFrames:UpdateAllIndicators(setAppearance)
return
end

if not self.isWoWClassicEra and not self.isWoWClassic then
if CompactRaidFrameContainer and CompactRaidFrameContainer.ApplyToFrames then
-- 10.0 refactored CompactRaidFrameContainer with new functionality
CompactRaidFrameContainer:ApplyToFrames("normal", function(frame)
self:UpdateIndicators(frame, setAppearance)
Expand Down
4 changes: 2 additions & 2 deletions Modules/AuraListeners.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ end
--- Creates a listener for the UNIT_AURA event attached to all raid frames
--- This function explicitly creates a listener for all raid frames, even if they aren't visible.
function EnhancedRaidFrames:CreateAllAuraListeners()
if not self.isWoWClassicEra and not self.isWoWClassic then
if CompactRaidFrameContainer and CompactRaidFrameContainer.ApplyToFrames then
-- 10.0 refactored CompactRaidFrameContainer with new functionality
CompactRaidFrameContainer:ApplyToFrames("normal", function(frame)
self:CreateAuraListener(frame)
Expand All @@ -71,7 +71,7 @@ end
--- Scans all raid frame units and updates the unitAuras table with all auras on each unit.
function EnhancedRaidFrames:UpdateAllAuras()
-- Iterate over all raid frame units and force a full update
if not self.isWoWClassicEra and not self.isWoWClassic then
if CompactRaidFrameContainer and CompactRaidFrameContainer.ApplyToFrames then
-- 10.0 refactored CompactRaidFrameContainer with new functionality
CompactRaidFrameContainer:ApplyToFrames("normal", function(frame)
self:UpdateUnitAuras(frame, { isFullUpdate = true })
Expand Down
2 changes: 1 addition & 1 deletion Modules/TargetMarkers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ end

--- Update the appearance of our target markers for all frames
function EnhancedRaidFrames:UpdateAllTargetMarkers()
if not self.isWoWClassicEra and not self.isWoWClassic then
if CompactRaidFrameContainer and CompactRaidFrameContainer.ApplyToFrames then
-- 10.0 refactored CompactRaidFrameContainer with new functionality
CompactRaidFrameContainer:ApplyToFrames("normal", function(frame)
self:UpdateTargetMarker(frame)
Expand Down
2 changes: 1 addition & 1 deletion Overrides.lua
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ local LibRangeCheck = LibStub("LibRangeCheck-3.0")

--- Set the visibility on the stock buff/debuff frames
function EnhancedRaidFrames:UpdateAllStockAuraVisibility()
if not self.isWoWClassicEra and not self.isWoWClassic then
if CompactRaidFrameContainer and CompactRaidFrameContainer.ApplyToFrames then
-- 10.0 refactored CompactRaidFrameContainer with new functionality
CompactRaidFrameContainer:ApplyToFrames("normal", function(frame)
self:UpdateStockAuraVisibility(frame)
Expand Down

0 comments on commit 0b10405

Please sign in to comment.