Skip to content

Commit

Permalink
Drop Comp Stomp brawl records
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Mar 20, 2019
1 parent bc5f346 commit c45d15b
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions REFlex.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion REFlex.toc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
16 changes: 12 additions & 4 deletions REFlexUpdater.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit c45d15b

Please sign in to comment.