- testing the mercurial repo packpager.
This commit is contained in:
+48
-27
@@ -146,7 +146,7 @@
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
_detalhes.tabela_vigente.is_boss = boss_table
|
||||
|
||||
if (_detalhes.in_combat and not _detalhes.leaving_combat) then
|
||||
@@ -239,7 +239,7 @@
|
||||
end
|
||||
|
||||
--try to get the encounter name after the encounter (can be called during the combat as well)
|
||||
function _detalhes:FindBoss()
|
||||
function _detalhes:FindBoss (noJournalSearch)
|
||||
|
||||
if (_detalhes.encounter_table.name) then
|
||||
local encounter_table = _detalhes.encounter_table
|
||||
@@ -269,24 +269,27 @@
|
||||
end
|
||||
end
|
||||
|
||||
local in_instance = IsInInstance() --> garrison returns party as instance type.
|
||||
if ((InstanceType == "party" or InstanceType == "raid") and in_instance) then
|
||||
local boss_list = _detalhes:GetCurrentDungeonBossListFromEJ()
|
||||
if (boss_list) then
|
||||
local ActorsContainer = _detalhes.tabela_vigente [class_type_dano]._ActorTable
|
||||
if (ActorsContainer) then
|
||||
for index, Actor in _ipairs (ActorsContainer) do
|
||||
if (not Actor.grupo) then
|
||||
if (boss_list [Actor.nome]) then
|
||||
Actor.boss = true
|
||||
return boss_found_not_registered (boss_list [Actor.nome], ZoneName, ZoneMapID, DifficultyID)
|
||||
noJournalSearch = true --> disabling the scan on encounter journal
|
||||
|
||||
if (not noJournalSearch) then
|
||||
local in_instance = IsInInstance() --> garrison returns party as instance type.
|
||||
if ((InstanceType == "party" or InstanceType == "raid") and in_instance) then
|
||||
local boss_list = _detalhes:GetCurrentDungeonBossListFromEJ()
|
||||
if (boss_list) then
|
||||
local ActorsContainer = _detalhes.tabela_vigente [class_type_dano]._ActorTable
|
||||
if (ActorsContainer) then
|
||||
for index, Actor in _ipairs (ActorsContainer) do
|
||||
if (not Actor.grupo) then
|
||||
if (boss_list [Actor.nome]) then
|
||||
Actor.boss = true
|
||||
return boss_found_not_registered (boss_list [Actor.nome], ZoneName, ZoneMapID, DifficultyID)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
return false
|
||||
end
|
||||
|
||||
@@ -460,12 +463,13 @@
|
||||
_detalhes:CatchRaidDebuffUptime ("DEBUFF_UPTIME_OUT")
|
||||
_detalhes:CloseEnemyDebuffsUptime()
|
||||
|
||||
--> pega a zona do jogador e vê se foi uma luta contra um Boss -- identifica se a luta foi com um boss
|
||||
--> check if this isn't a boss and try to find a boss in the segment
|
||||
if (not _detalhes.tabela_vigente.is_boss) then
|
||||
|
||||
--> function which runs after a boss encounter to try recognize a encounter
|
||||
|
||||
--> if this is a mythic+ dungeon, do not scan for encounter journal boss names in the actor list
|
||||
_detalhes:FindBoss()
|
||||
|
||||
--> still didn't find the boss
|
||||
if (not _detalhes.tabela_vigente.is_boss) then
|
||||
local ZoneName, _, DifficultyID, _, _, _, _, ZoneMapID = _GetInstanceInfo()
|
||||
local findboss = _detalhes:GetRaidBossFindFunction (ZoneMapID)
|
||||
@@ -512,6 +516,7 @@
|
||||
local encounterID, encounterName, difficultyID, raidSize, endStatus = unpack (from_encounter_end)
|
||||
|
||||
if (encounterID) then
|
||||
|
||||
local ZoneName, InstanceType, DifficultyID, DifficultyName, _, _, _, ZoneMapID = GetInstanceInfo()
|
||||
local ejid = EJ_GetCurrentInstance()
|
||||
if (ejid == 0) then
|
||||
@@ -531,8 +536,14 @@
|
||||
id = encounterID,
|
||||
}
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
--> tag as a mythic dungeon segment, can be any type of segment, this tag also avoid the segment to be tagged as trash
|
||||
if (_detalhes.MythicPlus.Started) then
|
||||
_detalhes.tabela_vigente.is_mythic_dungeon_segment = true
|
||||
_detalhes.tabela_vigente.is_mythic_dungeon_run_id = _detalhes.mythic_dungeon_id
|
||||
end
|
||||
|
||||
if (not _detalhes.tabela_vigente.is_boss) then
|
||||
|
||||
if (_detalhes.tabela_vigente.is_pvp or _detalhes.tabela_vigente.is_arena) then
|
||||
@@ -542,16 +553,22 @@
|
||||
if (_detalhes.tabela_vigente.is_arena) then
|
||||
_detalhes.tabela_vigente.enemy = "[" .. ARENA .. "] " .. _detalhes.tabela_vigente.is_arena.name
|
||||
end
|
||||
|
||||
|
||||
local in_instance = IsInInstance() --> garrison returns party as instance type.
|
||||
if ((InstanceType == "party" or InstanceType == "raid") and in_instance) then
|
||||
if (InstanceType == "party") then
|
||||
--if (_detalhes:GetBossNames (_detalhes.zone_id)) then
|
||||
-- _detalhes.tabela_vigente.is_trash = true
|
||||
--end
|
||||
|
||||
--> is new dungeon?
|
||||
_detalhes.tabela_vigente.is_trash = true
|
||||
if (not _detalhes.tabela_vigente.is_mythic_dungeon_segment) then
|
||||
--> tag the combat as trash clean up
|
||||
_detalhes.tabela_vigente.is_trash = true
|
||||
else
|
||||
local zoneName, instanceType, difficultyID, difficultyName, maxPlayers, dynamicDifficulty, isDynamic, instanceMapID, instanceGroupSize = GetInstanceInfo()
|
||||
_detalhes.tabela_vigente.is_mythic_dungeon_trash = {
|
||||
ZoneName = zoneName,
|
||||
MapID = instanceMapID,
|
||||
Level = _detalhes.MythicPlus.Level,
|
||||
EJID = _detalhes.MythicPlus.ejID,
|
||||
}
|
||||
end
|
||||
else
|
||||
_detalhes.tabela_vigente.is_trash = true
|
||||
end
|
||||
@@ -636,7 +653,7 @@
|
||||
end
|
||||
|
||||
if (from_encounter_end) then
|
||||
_detalhes.tabela_vigente:SetEndTime (_detalhes.encounter_table ["end"])
|
||||
_detalhes.tabela_vigente:SetEndTime (_detalhes.encounter_table ["end"] or GetTime())
|
||||
end
|
||||
|
||||
--> encounter boss function
|
||||
@@ -1614,6 +1631,10 @@
|
||||
instancia = self
|
||||
end
|
||||
|
||||
if (not forcar) then
|
||||
_detalhes.LastUpdateTick = _detalhes._tempo
|
||||
end
|
||||
|
||||
if (instancia == -1) then
|
||||
|
||||
--> update
|
||||
|
||||
Reference in New Issue
Block a user