Skip to content

Commit

Permalink
Fix mythic dungeons window (again)
Browse files Browse the repository at this point in the history
  • Loading branch information
Phanx committed Sep 19, 2016
1 parent cd59e15 commit 532595f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### Version 7.0.3.4

- Fixed an error when opening the Mythic Dungeons window

### Version 7.0.3.3

- Fixed an error when opening the Mythic Dungeons window
Expand Down
8 changes: 4 additions & 4 deletions ClassColorsBlizz.lua
Original file line number Diff line number Diff line change
Expand Up @@ -449,12 +449,12 @@ end
-- Blizzard_ChallengesUI.lua

addonFuncs["Blizzard_ChallengesUI"] = function()
local function GuildChallengesGuildBestMixin_SetUp(self, leaderInfo)
local function PostSetUp(self, leaderInfo)
self.CharacterName:SetFormattedText(leaderInfo.isYou and CHALLENGE_MODE_GUILD_BEST_LINE_YOU or CHALLENGE_MODE_GUILD_BEST_LINE,
CUSTOM_CLASS_COLORS[leaderInfo.class].colorStr,
leaderInfo.name)
end

local function GuildChallengesGuildBestMixin_OnEnter(self)
local leaderInfo = self.leaderInfo

Expand All @@ -469,14 +469,14 @@ addonFuncs["Blizzard_ChallengesUI"] = function()
GameTooltip:Show()
end

hooksecurefunc(ChallengesFrame_Update, function(self)
hooksecurefunc("ChallengesFrame_Update", function(self)
if self.leadersAvailable then
local leaders = C_ChallengeMode.GetGuildLeaders()
if leaders and #leaders > 0 then
for i = 1, #leaders do
local frame = self.GuildBest.GuildBests[i]
GuildChallengesGuildBestMixin_SetUp(frame, leaders[i])
frame:SetScript("OnEnter", GuildChallengesGuildBestMixin_OnEnter)
PostSetUp(frame, leaders[i])
end
end
end
Expand Down

0 comments on commit 532595f

Please sign in to comment.