More fixes
This commit is contained in:
+8
-4
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user