translated code to English and a few bug fixes from latest alpha
This commit is contained in:
@@ -82,6 +82,8 @@
|
||||
Details222.Textures = {}
|
||||
--namespace for pet
|
||||
Details222.Pets = {}
|
||||
--auto run code
|
||||
Details222.AutoRunCode = {}
|
||||
Details222.Instances = {}
|
||||
Details222.MythicPlus = {}
|
||||
Details222.EJCache = {}
|
||||
@@ -1162,7 +1164,8 @@ end
|
||||
|
||||
function Details222.ClassCache.MakeCache()
|
||||
--iterage among all segments in the container history, get the damage container and get the actor list, check if the actor is a player and if it is, get the class and store it in the cache
|
||||
for _, combatObject in ipairs(Details.tabela_historico.tabelas) do
|
||||
local segmentsTable = Details:GetCombatSegments()
|
||||
for _, combatObject in ipairs(segmentsTable) do
|
||||
for _, actorObject in combatObject:GetContainer(DETAILS_ATTRIBUTE_DAMAGE):ListActors() do
|
||||
if (actorObject:IsPlayer()) then
|
||||
local actorName = actorObject.nome
|
||||
@@ -1303,6 +1306,13 @@ function Details:DestroyActor(actorObject, actorContainer, combatObject, callSta
|
||||
local combatTotalsTable = combatObject.totals[containerType] --without group
|
||||
local combatTotalsTableInGroup = combatObject.totals_grupo[containerType] --with group
|
||||
|
||||
--remove the actor from the parser cache
|
||||
local c1, c2, c3, c4 = Details222.Cache.GetParserCacheTables()
|
||||
c1[actorObject.serial] = nil
|
||||
c2[actorObject.serial] = nil
|
||||
c3[actorObject.serial] = nil
|
||||
c4[actorObject.serial] = nil
|
||||
|
||||
if (not actorObject.ownerName) then --not a pet
|
||||
if (containerType == 1 or containerType == 2) then --damage|healing done
|
||||
combatTotalsTable = combatTotalsTable - actorObject.total
|
||||
|
||||
Reference in New Issue
Block a user