Skip to content

Commit

Permalink
Fixed ToK records
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Mar 16, 2019
1 parent 3e57bed commit d558e83
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion REFlex.lua
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ local RegisterAddonMessagePrefix = _G.C_ChatInfo.RegisterAddonMessagePrefix
local SendAddonMessage = _G.C_ChatInfo.SendAddonMessage
local ElvUI = _G.ElvUI

RE.Version = 265
RE.Version = 266
RE.LastSquash = 1531828800
RE.FoundNewVersion = 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.5
## Version: 2.6.6
## Author: AcidWeb
## SavedVariablesPerCharacter: REFlexSettings, REFlexDatabase, REFlexHonorDatabase
## X-Website: https://www.curseforge.com/wow/addons/reflex-battleground-historian
Expand Down
1 change: 1 addition & 0 deletions REFlexStructures.lua
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ RE.BracketNames = {

RE.MapIDRemap = {
[968] = 566,
[998] = 1035,
[1681] = 2107
}

Expand Down
18 changes: 11 additions & 7 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 < 265 then
if RE.Database[i].Version < 266 then
if RE.Database[i].Version < 224 then
if RE.Database[i].Map == 1681 then
RE.Database[i].Map = 2107
Expand Down Expand Up @@ -78,14 +78,18 @@ function RE:UpdateDatabase()
RE.Database[i].Version = 260
end

if RE.Database[i].Map == 489 then
RE.Database[i].Map = 2106
elseif RE.Database[i].Map == 529 then
RE.Database[i].Map = 2107
elseif RE.Database[i].Map == 998 then
if RE.Database[i].Version < 265 then
if RE.Database[i].Map == 489 then
RE.Database[i].Map = 2106
elseif RE.Database[i].Map == 529 then
RE.Database[i].Map = 2107
end
end

if RE.Database[i].Map == 998 then
RE.Database[i].Map = 1035
end
RE.Database[i].Version = 265
RE.Database[i].Version = 266
end
end
end
Expand Down

0 comments on commit d558e83

Please sign in to comment.