Skip to content

Commit

Permalink
class filter fix and options on top
Browse files Browse the repository at this point in the history
  • Loading branch information
Hoizame committed Jun 6, 2021
1 parent 9ca1f53 commit 243c6c1
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
22 changes: 21 additions & 1 deletion AtlasLootClassic/Data/ClassFilter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ local LINKED_STATS = {

["ITEM_MOD_RESILIENCE_RATING"] = "ITEM_MOD_RESILIENCE_RATING_SHORT",
}
for k,v in pairs(LINKED_STATS) do LINKED_STATS[v] = v end

local STAT_LIST = {
{
Expand Down Expand Up @@ -370,6 +371,9 @@ AtlasLoot.AtlasLootDBDefaults.profile.ClassFilter = {
["ITEM_MOD_HIT_RANGED_RATING_SHORT"] = false,
["ITEM_MOD_CRIT_MELEE_RATING_SHORT"] = false,
["ITEM_MOD_CRIT_RANGED_RATING_SHORT"] = false,
["ITEM_MOD_DEFENSE_SKILL_RATING_SHORT"] = false,
["ITEM_MOD_PARRY_RATING_SHORT"] = false,
["ITEM_MOD_DODGE_RATING_SHORT"] = false,
},
["SHAMAN"] = {
["*"] = true,
Expand All @@ -386,6 +390,9 @@ AtlasLoot.AtlasLootDBDefaults.profile.ClassFilter = {
["ITEM_MOD_HIT_RANGED_RATING_SHORT"] = false,
["ITEM_MOD_CRIT_MELEE_RATING_SHORT"] = false,
["ITEM_MOD_CRIT_RANGED_RATING_SHORT"] = false,
["ITEM_MOD_DEFENSE_SKILL_RATING_SHORT"] = false,
["ITEM_MOD_PARRY_RATING_SHORT"] = false,
["ITEM_MOD_DODGE_RATING_SHORT"] = false,
},
["WARLOCK"] = {
["*"] = true,
Expand All @@ -399,6 +406,9 @@ AtlasLoot.AtlasLootDBDefaults.profile.ClassFilter = {
["ITEM_MOD_HIT_RANGED_RATING_SHORT"] = false,
["ITEM_MOD_CRIT_MELEE_RATING_SHORT"] = false,
["ITEM_MOD_CRIT_RANGED_RATING_SHORT"] = false,
["ITEM_MOD_DEFENSE_SKILL_RATING_SHORT"] = false,
["ITEM_MOD_PARRY_RATING_SHORT"] = false,
["ITEM_MOD_DODGE_RATING_SHORT"] = false,
},
["DRUID"] = {
["*"] = true,
Expand Down Expand Up @@ -443,8 +453,18 @@ local function BuildClassFilterList()
FILTER_DATA = nil
end

local OptionsClassSort
function ClassFilter.GetStatListForOptions()
return STAT_LIST, CLASS_SORT, db
if not OptionsClassSort then
local ownClass = UnitClassBase("player")
OptionsClassSort = { ownClass }
for k,v in ipairs(CLASS_SORT) do
if v ~= ownClass then
OptionsClassSort[#OptionsClassSort+1] = v
end
end
end
return STAT_LIST, OptionsClassSort, db
end

function ClassFilter.ClassCanUseItem(className, itemID)
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ This mod is distributed under Version 2 of the GPL. A copy of the GPL is includ

## v2.3.1-bcc (Jun XX, 2021)

- fix bug with some stats in class filter
- own class is now on top for class filter options
- (bcc) add missing honor prices for horde
- (bcc) add missing legendarys
- (bcc) add missing world epics
Expand Down

0 comments on commit 243c6c1

Please sign in to comment.