Added combat:GetBossHealth(); combat:GetBossName(); combat:GetCurrentPhase()

This commit is contained in:
Tercio Jose
2024-03-12 21:32:20 -03:00
parent 2c613e063d
commit f9d2e81564
14 changed files with 294 additions and 75 deletions
+4
View File
@@ -339,6 +339,7 @@
local combatCounter = Details:GetOrSetCombatId(1)
--create a new combat object and preplace the current one
---@type combat
local newCombatObject = Details.combate:NovaTabela(true, Details.tabela_overall, combatCounter, ...)
Details:SetCurrentCombat(newCombatObject)
@@ -771,6 +772,9 @@
if (not bShouldForceDiscard and (zoneType == "none" or tempo_do_combate >= Details.minimum_combat_time or not segmentsTable[1])) then
--combat accepted
Details.tabela_historico:AddCombat(currentCombat) --move a tabela atual para dentro do histrico
currentCombat:StoreTalents()
if (currentCombat.is_boss) then
if (IsInRaid()) then
local cleuID = currentCombat.is_boss.id