From c45d15b292afc644056f16a47696f1017b60803e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Jastrz=C4=99bski?= Date: Wed, 20 Mar 2019 11:38:03 +0100 Subject: [PATCH] Drop Comp Stomp brawl records --- REFlex.lua | 4 ++-- REFlex.toc | 2 +- REFlexUpdater.lua | 16 ++++++++++++---- 3 files changed, 15 insertions(+), 7 deletions(-) diff --git a/REFlex.lua b/REFlex.lua index f11c74c..cedb241 100644 --- a/REFlex.lua +++ b/REFlex.lua @@ -104,7 +104,7 @@ local RegisterAddonMessagePrefix = _G.C_ChatInfo.RegisterAddonMessagePrefix local SendAddonMessage = _G.C_ChatInfo.SendAddonMessage local ElvUI = _G.ElvUI -RE.Version = 267 +RE.Version = 268 RE.LastSquash = 1531828800 RE.FoundNewVersion = false @@ -940,7 +940,7 @@ function RE:PVPEnd() end -- Hide corrupted records - if not RE.MatchData.PlayerNum or RE.MatchData.Map == 1170 or (RE.MatchData.isArena and RE.MatchData.isRated and RE.MatchData.isBrawl) then + if not RE.MatchData.PlayerNum or RE.MatchData.Map == 1170 or RE.MatchData.Map == 2177 or (RE.MatchData.isArena and RE.MatchData.isRated and RE.MatchData.isBrawl) then RE.MatchData.Hidden = true else RE.MatchData.Hidden = false diff --git a/REFlex.toc b/REFlex.toc index c1fa46c..3ea30b9 100644 --- a/REFlex.toc +++ b/REFlex.toc @@ -1,7 +1,7 @@ ## Interface: 80100 ## Title: |cFF74D06CRE|rFlex ## Notes: Collect statistics of played arena matches and battlegrounds. -## Version: 2.6.7 +## Version: 2.6.8 ## Author: AcidWeb ## SavedVariablesPerCharacter: REFlexSettings, REFlexDatabase, REFlexHonorDatabase ## X-Website: https://www.curseforge.com/wow/addons/reflex-battleground-historian diff --git a/REFlexUpdater.lua b/REFlexUpdater.lua index edeac16..2c8763f 100644 --- a/REFlexUpdater.lua +++ b/REFlexUpdater.lua @@ -36,7 +36,7 @@ end function RE:UpdateDatabase() for i=1, #RE.Database do - if RE.Database[i].Version < 266 then + if RE.Database[i].Version < 268 then if RE.Database[i].Version < 224 then if RE.Database[i].Map == 1681 then RE.Database[i].Map = 2107 @@ -84,12 +84,20 @@ function RE:UpdateDatabase() elseif RE.Database[i].Map == 529 then RE.Database[i].Map = 2107 end + RE.Database[i].Version = 265 end - if RE.Database[i].Map == 998 then - RE.Database[i].Map = 1035 + if RE.Database[i].Version < 266 then + if RE.Database[i].Map == 998 then + RE.Database[i].Map = 1035 + end + RE.Database[i].Version = 266 + end + + if RE.Database[i].Map == 2177 then + RE.Database[i].Hidden = true end - RE.Database[i].Version = 266 + RE.Database[i].Version = 268 end end end