Merge pull request #625 from Flamanis/FixSingleSegmentBG
Fix single segment BG and a couple missed unitnames
This commit is contained in:
@@ -1565,7 +1565,7 @@ function _detalhes:CatchRaidBuffUptime (in_or_out)
|
||||
for buffIndex = 1, 41 do
|
||||
local name, _, _, _, _, _, unitCaster, _, _, spellid = _UnitAura ("player", buffIndex, nil, "HELPFUL")
|
||||
if (name and unitCaster and UnitExists(unitCaster) and UnitIsUnit(unitCaster, "player")) then
|
||||
local playerName = _UnitName ("player")
|
||||
local playerName = Details.playername
|
||||
local playerGUID = UnitGUID("player")
|
||||
if (playerGUID) then
|
||||
if (in_or_out == "BUFF_UPTIME_IN") then
|
||||
@@ -1606,7 +1606,7 @@ function _detalhes:CatchRaidBuffUptime (in_or_out)
|
||||
for buffIndex = 1, 41 do
|
||||
local name, _, _, _, _, _, unitCaster, _, _, spellid = _UnitAura ("player", buffIndex, nil, "HELPFUL")
|
||||
if (name and unitCaster and UnitExists(unitCaster) and UnitIsUnit(unitCaster, "player")) then
|
||||
local playerName = _UnitName ("player")
|
||||
local playerName = Details.playername
|
||||
local playerGUID = UnitGUID("player")
|
||||
|
||||
if (playerGUID) then
|
||||
|
||||
@@ -7125,6 +7125,8 @@ 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()
|
||||
|
||||
@@ -7136,6 +7138,12 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
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 name:match('%-')) then
|
||||
name = name .. '-' .. realmName
|
||||
end
|
||||
end
|
||||
|
||||
--damage done
|
||||
local actor = Details.tabela_vigente(1, name)
|
||||
if (actor) then
|
||||
|
||||
+1
-1
@@ -931,7 +931,7 @@ function Details.packFunctions.PackUtility(combatObject)
|
||||
local actorsToPack = {}
|
||||
|
||||
--get the player object from the combat > utility container
|
||||
local playerName = UnitName("player")
|
||||
local playerName = Details.playername
|
||||
local playerObject = combatObject:GetActor(DETAILS_ATTRIBUTE_MISC, playerName)
|
||||
if (not playerObject) then
|
||||
if (isDebugging) then
|
||||
|
||||
Reference in New Issue
Block a user