This commit is contained in:
Tercio Jose
2022-10-13 13:41:07 -03:00
parent 6243a32740
commit bebb4af33c
13 changed files with 87 additions and 51 deletions
+20
View File
@@ -100,6 +100,26 @@ do
CONTAINER_ENEMYDEBUFFTARGET_CLASS = 11
}
local initialSpecListOverride = {
[1455] = 251, --dk
[1456] = 577, --demon hunter
[1447] = 102, --druid
[1465] = 1467, --evoker
[1448] = 253, --hunter
[1449] = 63, --mage
[1450] = 269, --monk
[1451] = 70, --paladin
[1452] = 258, --priest
[1453] = 260, --rogue
[1444] = 262, --shaman
[1454] = 266, --warlock
[1446] = 71, --warrior
}
function Details:SetSpecId(specId)
self.spec = initialSpecListOverride[specId] or specId
end
function _detalhes:Name (actor)
return self.nome or actor and actor.nome
end
+3 -3
View File
@@ -612,7 +612,7 @@ function Details.packFunctions.UnPackDamage(currentCombat, combatData, tablePosi
--set the actor class, spec and group
actorObject.classe = class
actorObject.spec = spec
actorObject:SetSpecId(spec)
actorObject.grupo = isActorInGroup(class, actorFlag)
actorObject.flag_original = actorFlag
@@ -860,7 +860,7 @@ function Details.packFunctions.UnPackHeal(currentCombat, combatData, tablePositi
--set the actor class, spec and group
actorObject.classe = class
actorObject.spec = spec
actorObject:SetSpecId(spec)
actorObject.grupo = isActorInGroup(class, actorFlag)
actorObject.flag_original = actorFlag
@@ -1392,7 +1392,7 @@ function Details.packFunctions.UnPackUtility(currentCombat, combatData, tablePos
--set the actor class, spec and group
actorObject.classe = class
actorObject.spec = spec
actorObject:SetSpecId(spec)
actorObject.grupo = isActorInGroup(class, actorFlag)
actorObject.flag_original = actorFlag
--finished utility actor setup
+9 -9
View File
@@ -301,7 +301,7 @@ do
if (spec) then
_detalhes.cached_specs [Actor.serial] = spec
Actor.spec = spec
Actor:SetSpecId(spec)
Actor.classe = _detalhes.SpecIDToClass [spec] or Actor.classe
Actor.guessing_spec = nil
@@ -328,7 +328,7 @@ do
if (spec ~= Actor.spec) then
_detalhes.cached_specs [Actor.serial] = spec
Actor.spec = spec
Actor:SetSpecId(spec)
Actor.classe = _detalhes.SpecIDToClass [spec] or Actor.classe
Details:SendEvent("UNIT_SPEC", nil, Actor:GetUnitId(), spec, Actor.serial)
@@ -362,7 +362,7 @@ do
if (spec ~= Actor.spec) then
_detalhes.cached_specs [Actor.serial] = spec
Actor.spec = spec
Actor:SetSpecId(spec)
Actor.classe = _detalhes.SpecIDToClass [spec] or Actor.classe
Details:SendEvent("UNIT_SPEC", nil, Actor:GetUnitId(), spec, Actor.serial)
@@ -405,7 +405,7 @@ do
--get from the spec cache
local spec = _detalhes.cached_specs [Actor.serial]
if (spec) then
Actor.spec = spec
Actor:SetSpecId(spec)
Actor.classe = _detalhes.SpecIDToClass [spec] or Actor.classe
Actor.guessing_spec = nil
@@ -432,7 +432,7 @@ do
if (spec) then
_detalhes.cached_specs [Actor.serial] = spec
Actor.spec = spec
Actor:SetSpecId(spec)
Actor.classe = _detalhes.SpecIDToClass [spec] or Actor.classe
Details:SendEvent("UNIT_SPEC", nil, Actor:GetUnitId(), spec, Actor.serial)
@@ -458,7 +458,7 @@ do
if (spec) then
_detalhes.cached_specs [Actor.serial] = spec
Actor.spec = spec
Actor:SetSpecId(spec)
Actor.classe = _detalhes.SpecIDToClass [spec] or Actor.classe
Actor.guessing_spec = nil
@@ -486,7 +486,7 @@ do
if (spec) then
_detalhes.cached_specs [Actor.serial] = spec
Actor.spec = spec
Actor:SetSpecId(spec)
Actor.classe = _detalhes.SpecIDToClass [spec] or Actor.classe
Actor.guessing_spec = nil
@@ -520,7 +520,7 @@ do
_detalhes.cached_specs [Actor.serial] = spec
Actor.spec = spec
Actor:SetSpecId(spec)
Actor.classe = _detalhes.SpecIDToClass [spec] or Actor.classe
Actor.guessing_spec = nil
@@ -547,7 +547,7 @@ do
_detalhes.cached_specs [Actor.serial] = spec
Actor.spec = spec
Actor:SetSpecId(spec)
Actor.classe = _detalhes.SpecIDToClass [spec] or Actor.classe
Actor.need_refresh = true
Actor.guessing_spec = nil
+3
View File
@@ -502,6 +502,9 @@ function _detalhes:ApplyProfile (profile_name, nosave, is_copy)
--refresh broadcaster tools
_detalhes:LoadFramesForBroadcastTools()
--change the rogue spec combat icon to outlaw depending on the game version
Details:HandleRogueCombatSpecIconByGameVersion()
if (_detalhes.initializing) then
_detalhes.profile_loaded = true
end
+24 -24
View File
@@ -201,40 +201,40 @@ function Details:CreateTestBars (alphabet, isArena)
end
if (who[3]) then
robot.spec = who[3]
robot:SetSpecId(who[3])
elseif (robot.classe == "DEATHKNIGHT") then
local specs = {250, 251, 252}
robot.spec = specs [math.random (1, #specs)]
robot:SetSpecId(specs [math.random (1, #specs)])
elseif (robot.classe == "DRUID") then
local specs = {102, 103, 104, 105}
robot.spec = specs [math.random (1, #specs)]
robot:SetSpecId(specs [math.random (1, #specs)])
elseif (robot.classe == "HUNTER") then
local specs = {253, 254, 255}
robot.spec = specs [math.random (1, #specs)]
robot:SetSpecId(specs [math.random (1, #specs)])
elseif (robot.classe == "MAGE") then
local specs = {62, 63, 64}
robot.spec = specs [math.random (1, #specs)]
robot:SetSpecId(specs [math.random (1, #specs)])
elseif (robot.classe == "MONK") then
local specs = {268, 269, 270}
robot.spec = specs [math.random (1, #specs)]
robot:SetSpecId(specs [math.random (1, #specs)])
elseif (robot.classe == "PALADIN") then
local specs = {65, 66, 70}
robot.spec = specs [math.random (1, #specs)]
robot:SetSpecId(specs [math.random (1, #specs)])
elseif (robot.classe == "PRIEST") then
local specs = {256, 257, 258}
robot.spec = specs [math.random (1, #specs)]
robot:SetSpecId(specs [math.random (1, #specs)])
elseif (robot.classe == "ROGUE") then
local specs = {259, 260, 261}
robot.spec = specs [math.random (1, #specs)]
robot:SetSpecId(specs [math.random (1, #specs)])
elseif (robot.classe == "SHAMAN") then
local specs = {262, 263, 264}
robot.spec = specs [math.random (1, #specs)]
robot:SetSpecId(specs [math.random (1, #specs)])
elseif (robot.classe == "WARLOCK") then
local specs = {265, 266, 267}
robot.spec = specs [math.random (1, #specs)]
robot:SetSpecId(specs [math.random (1, #specs)])
elseif (robot.classe == "WARRIOR") then
local specs = {71, 72, 73}
robot.spec = specs [math.random (1, #specs)]
robot:SetSpecId(specs [math.random (1, #specs)])
end
robot.total = math.random (10000000, 60000000)
@@ -263,40 +263,40 @@ function Details:CreateTestBars (alphabet, isArena)
robot.classe = who[2]
if (who[3]) then
robot.spec = who[3]
robot:SetSpecId(who[3])
elseif (robot.classe == "DEATHKNIGHT") then
local specs = {250, 251, 252}
robot.spec = specs [math.random (1, #specs)]
robot:SetSpecId(specs [math.random (1, #specs)])
elseif (robot.classe == "DRUID") then
local specs = {102, 103, 104, 105}
robot.spec = specs [math.random (1, #specs)]
robot:SetSpecId(specs [math.random (1, #specs)])
elseif (robot.classe == "HUNTER") then
local specs = {253, 254, 255}
robot.spec = specs [math.random (1, #specs)]
robot:SetSpecId(specs [math.random (1, #specs)])
elseif (robot.classe == "MAGE") then
local specs = {62, 63, 64}
robot.spec = specs [math.random (1, #specs)]
robot:SetSpecId(specs [math.random (1, #specs)])
elseif (robot.classe == "MONK") then
local specs = {268, 269, 270}
robot.spec = specs [math.random (1, #specs)]
robot:SetSpecId(specs [math.random (1, #specs)])
elseif (robot.classe == "PALADIN") then
local specs = {65, 66, 70}
robot.spec = specs [math.random (1, #specs)]
robot:SetSpecId(specs [math.random (1, #specs)])
elseif (robot.classe == "PRIEST") then
local specs = {256, 257, 258}
robot.spec = specs [math.random (1, #specs)]
robot:SetSpecId(specs [math.random (1, #specs)])
elseif (robot.classe == "ROGUE") then
local specs = {259, 260, 261}
robot.spec = specs [math.random (1, #specs)]
robot:SetSpecId(specs [math.random (1, #specs)])
elseif (robot.classe == "SHAMAN") then
local specs = {262, 263, 264}
robot.spec = specs [math.random (1, #specs)]
robot:SetSpecId(specs [math.random (1, #specs)])
elseif (robot.classe == "WARLOCK") then
local specs = {265, 266, 267}
robot.spec = specs [math.random (1, #specs)]
robot:SetSpecId(specs [math.random (1, #specs)])
elseif (robot.classe == "WARRIOR") then
local specs = {71, 72, 73}
robot.spec = specs [math.random (1, #specs)]
robot:SetSpecId(specs [math.random (1, #specs)])
end
robot.total = math.random (10000000, 60000000)