Skip to content

Commit

Permalink
Hopefully fixed issues with match recording (close #14)
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Feb 8, 2021
1 parent ab2bde6 commit b69b074
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions REFlex.lua
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ local SendAddonMessage = _G.C_ChatInfo.SendAddonMessage
local PlaySound = _G.PlaySound
local ElvUI = _G.ElvUI

RE.Version = 302
RE.Version = 303
RE.LastSquash = 1602662400
RE.FoundNewVersion = false

Expand All @@ -82,7 +82,7 @@ RE.LDBB = ""
RE.LDBUpdate = true
RE.LDBData = {["Won"] = 0, ["Lost"] = 0, ["HK"] = 0, ["Honor"] = 0}

RE.PlayerName = UnitName("PLAYER")
RE.PlayerName = UnitName("PLAYER"):lower()
RE.PlayerFaction = UnitFactionGroup("PLAYER") == "Horde" and 0 or 1
RE.PlayerZone = GetCVar("portal")

Expand Down Expand Up @@ -882,7 +882,7 @@ function RE:PVPEnd()
RE.MatchData.Players = {}
for i=1, RE.MatchData.PlayersNum do
local data = {GetBattlefieldScore(i)}
if data[1] == RE.PlayerName then
if data[1]:lower() == RE.PlayerName then
RE.MatchData.PlayerNum = i
end
tinsert(RE.MatchData.Players, data)
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: 90002
## Title: |cFF74D06CRE|rFlex
## Notes: Collect statistics of played arena matches and battlegrounds.
## Version: 3.0.2
## Version: 3.0.3
## Author: AcidWeb
## SavedVariablesPerCharacter: REFlexSettings, REFlexDatabase, REFlexHonorDatabase
## X-Website: https://www.curseforge.com/wow/addons/reflex-battleground-historian
Expand Down
2 changes: 1 addition & 1 deletion REFlexFunctions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ function RE:GetBGPlace(matchData, onlyFaction)
local placeKB, placeHK, placeHonor, placeDamage, placeHealing = 1, 1, 1, 1, 1
local playerData = matchData.Players[matchData.PlayerNum]
for i=1, #matchData.Players do
if matchData.Players[i][1] ~= RE.PlayerName and (not onlyFaction or (onlyFaction and matchData.Players[i][6] == matchData.PlayerSide)) then
if matchData.Players[i][1]:lower() ~= RE.PlayerName and (not onlyFaction or (onlyFaction and matchData.Players[i][6] == matchData.PlayerSide)) then
if playerData[2] < matchData.Players[i][2] then
placeKB = placeKB + 1
end
Expand Down

0 comments on commit b69b074

Please sign in to comment.