From 243c6c1ca0d6ca05ce1a355d7301174fea821745 Mon Sep 17 00:00:00 2001 From: Lag Date: Sun, 6 Jun 2021 13:43:08 +0200 Subject: [PATCH] class filter fix and options on top --- AtlasLootClassic/Data/ClassFilter.lua | 22 +++++++++++++++++++++- CHANGELOG.md | 2 ++ 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/AtlasLootClassic/Data/ClassFilter.lua b/AtlasLootClassic/Data/ClassFilter.lua index 0e05927e..9f1efaad 100644 --- a/AtlasLootClassic/Data/ClassFilter.lua +++ b/AtlasLootClassic/Data/ClassFilter.lua @@ -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 = { { @@ -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, @@ -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, @@ -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, @@ -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) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8066fcf6..52d4fb78 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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