More fixes

This commit is contained in:
Tercio Jose
2023-11-10 21:10:01 -03:00
parent d95ff2b827
commit 7a5529d4e4
3 changed files with 18 additions and 12 deletions
+8 -4
View File
@@ -7125,11 +7125,15 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
Details.pvp_parser_frame.ticker = nil
end
local _player, realmName = UnitFullName('player')
function Details.pvp_parser_frame:ReadPvPData()
local players = GetNumBattlefieldScores()
local _player, realmName = UnitFullName("player")
if (not realmName) then
realmName = GetRealmName()
realmName = realmName:gsub("%s+", "")
end
for i = 1, players do
local name, killingBlows, honorableKills, deaths, honorGained, faction, race, rank, class, classToken, damageDone, healingDone, bgRating, ratingChange, preMatchMMR, mmrChange, talentSpec
if (isWOTLK) then
@@ -7139,8 +7143,8 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
end
if (not isWOTLK and not isERA) then --Must be dragonflight
if (not name:match('%-')) then
name = name .. '-' .. realmName
if (not name:match("%-")) then
name = name .. "-" .. realmName
end
end