Skip to content

Commit

Permalink
Follower Dungeon difficulty now maps as Normal Dungeon for minilist u…
Browse files Browse the repository at this point in the history
…se (fixes #1716)
  • Loading branch information
ImUnicke committed Aug 14, 2024
1 parent af152e5 commit bf70cbc
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/Classes/Difficulty.lua
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,13 @@ app.AddEventHandler("OnLoad", function()
end,
});
end);
local CurrentDifficultyRemapper ={
[205] = 1, -- Follower Dungeon -> Normal Dungeon
}
app.GetCurrentDifficultyID = function()
return IsInInstance() and select(3, GetInstanceInfo()) or 0;
if not IsInInstance() then return 0 end
local diff = select(3, GetInstanceInfo()) or 0
return CurrentDifficultyRemapper[diff] or diff
end
app.GetRelativeDifficultyIcon = function(t)
return DifficultyIcons[GetRelativeValue(t, "difficultyID") or 1];
Expand Down

0 comments on commit bf70cbc

Please sign in to comment.