General Fixes and Improvements
This commit is contained in:
@@ -8,6 +8,8 @@
|
||||
--[[global]] DETAILS_SEGMENTID_OVERALL = -1
|
||||
--[[global]] DETAILS_SEGMENTID_CURRENT = 0
|
||||
|
||||
--[[global]] DETAILS_COMBAT_AMOUNT_CONTAINERS = 4
|
||||
|
||||
--enum segments type
|
||||
--[[global]] DETAILS_SEGMENTTYPE_GENERIC = 0
|
||||
|
||||
|
||||
@@ -30,6 +30,8 @@
|
||||
|
||||
local pet_tooltip_frame = _G.DetailsPetOwnerFinder
|
||||
|
||||
local openRaidLib = LibStub:GetLibrary("LibOpenRaid-1.0", true)
|
||||
|
||||
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--constants
|
||||
|
||||
@@ -469,26 +471,17 @@ end
|
||||
--try to get the actor class from name
|
||||
local getActorClass = function(actorObject, actorName, actorFlags, actorSerial)
|
||||
--get spec
|
||||
if (Details.track_specs) then
|
||||
local specId = Details.cached_specs[actorSerial]
|
||||
if (specId) then
|
||||
actorObject:SetSpecId(specId)
|
||||
--check is didn't changed the spec:
|
||||
if (Details.streamer_config.quick_detection) then
|
||||
--validate the spec more times if on quick detection
|
||||
Details:ScheduleTimer("ReGuessSpec", 2, {actorObject})
|
||||
Details:ScheduleTimer("ReGuessSpec", 4, {actorObject})
|
||||
Details:ScheduleTimer("ReGuessSpec", 6, {actorObject})
|
||||
end
|
||||
Details:ScheduleTimer("ReGuessSpec", 15, {actorObject})
|
||||
else
|
||||
if (Details.streamer_config.quick_detection) then
|
||||
--shoot detection early if in quick detection
|
||||
Details:ScheduleTimer("GuessSpec", 1, {actorObject, nil, 1})
|
||||
else
|
||||
Details:ScheduleTimer("GuessSpec", 3, {actorObject, nil, 1})
|
||||
end
|
||||
end
|
||||
local specId = Details.cached_specs[actorSerial]
|
||||
if (specId) then
|
||||
actorObject:SetSpecId(specId)
|
||||
end
|
||||
|
||||
if (not specId and Details.track_specs) then
|
||||
Details:ScheduleTimer("GuessSpec", 2, {actorObject, nil, 1})
|
||||
-- if (Details.streamer_config.quick_detection) then
|
||||
-- else
|
||||
-- Details:ScheduleTimer("GuessSpec", 3, {actorObject, nil, 1})
|
||||
-- end
|
||||
end
|
||||
|
||||
local _, engClass = UnitClass(actorName or "")
|
||||
|
||||
@@ -44,6 +44,13 @@ local addonName, Details222 = ...
|
||||
return self._ActorTable[spellId]
|
||||
end
|
||||
|
||||
|
||||
---return a table containing keys as spellid and value as spelltable
|
||||
---@return table<number, table>
|
||||
function container_habilidades:GetRawSpellTable()
|
||||
return self._ActorTable
|
||||
end
|
||||
|
||||
---return the value of the spellTable[key] for the passed spellId
|
||||
---@param spellId number
|
||||
---@param key string
|
||||
|
||||
Reference in New Issue
Block a user