Skip to content

Commit

Permalink
Plugins/BossBlock: Fix error due to GetTrackedAchievements() being …
Browse files Browse the repository at this point in the history
…replaced by `C_ContentTracking.GetTrackedIDs(Enum.ContentTrackingType.Achievement)` in patch 10.1.5
  • Loading branch information
funkydude committed Jul 12, 2023
1 parent f77553e commit 82445c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ files["**/Plugins/Bars.lua"].ignore = {
files["**/Plugins/BossBlock.lua"].ignore = {
"113/AlertFrame",
"112/BigWigs",
"113/C_ContentTracking",
"113/C_CVar",
"113/C_TalkingHead",
"113/TooltipDataProcessor",
Expand Down Expand Up @@ -191,7 +192,6 @@ globals = {
"GetSpellTexture",
"GetSubZoneText",
"GetTime",
"GetTrackedAchievements",
"InCombatLockdown",
"IsAddOnLoaded",
"IsAddOnLoadOnDemand",
Expand Down
3 changes: 2 additions & 1 deletion Plugins/BossBlock.lua
Original file line number Diff line number Diff line change
Expand Up @@ -391,7 +391,8 @@ do
CheckElv(self)
-- Never hide when tracking achievements or in Mythic+
local _, _, diff = GetInstanceInfo()
if not restoreObjectiveTracker and self.db.profile.blockObjectiveTracker and not GetTrackedAchievements() and diff ~= 8 and not trackerHider.IsProtected(ObjectiveTrackerFrame) then
local trackedAchievements = C_ContentTracking.GetTrackedIDs(2) -- Enum.ContentTrackingType.Achievement = 2
if not restoreObjectiveTracker and self.db.profile.blockObjectiveTracker and not next(trackedAchievements) and diff ~= 8 and not trackerHider.IsProtected(ObjectiveTrackerFrame) then
restoreObjectiveTracker = trackerHider.GetParent(ObjectiveTrackerFrame)
if restoreObjectiveTracker then
trackerHider.SetFixedFrameStrata(ObjectiveTrackerFrame, true) -- Changing parent would change the strata & level, lock it first
Expand Down

0 comments on commit 82445c0

Please sign in to comment.