Merge pull request #732 from Flamanis/CataBattlegrounds

Fix for One Segment BG on Cata
This commit is contained in:
Tercio Jose
2024-05-24 18:44:20 -03:00
committed by GitHub
+2 -2
View File
@@ -7251,13 +7251,13 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
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 or isERA) then
if (isCATA or isWOTLK or isERA) then
name, killingBlows, honorableKills, deaths, honorGained, faction, rank, race, class, classToken, damageDone, healingDone, bgRating, ratingChange, preMatchMMR, mmrChange, talentSpec = GetBattlefieldScore(i)
else
name, killingBlows, honorableKills, deaths, honorGained, faction, race, class, classToken, damageDone, healingDone, bgRating, ratingChange, preMatchMMR, mmrChange, talentSpec = GetBattlefieldScore(i)
end
if (not isWOTLK and not isERA) then --Must be dragonflight
if (not isWOTLK and not isERA and not isCATA) then --Must be dragonflight
if (not name:match("%-")) then
name = name .. "-" .. realmName
end