General Changes ad Improvements
- Added: Details:IsInMythicPlus() return true if the player is on a mythic dungeon run. - CombatObjects now have the key 'is_challenge' if the combat is a part of a challenge mode or mythic+ run. - Evoker extra bar tooltip's, now also show the uptime of Black Attunement and Prescience applications. - Breakdown Window now show Plater Npc Colors in the target box. - Added event: "COMBAT_MYTHICPLUS_OVERALL_READY", trigger when the overall segment for the mythic+ is ready. - Added event: "COMBAT_PLAYER_LEAVING", trigger at the beginning of the leave combat process. - Library updates: Details! Framework and Lib Open Raid.
This commit is contained in:
+30
-9
@@ -295,8 +295,8 @@
|
||||
function Details:EntrarEmCombate (...)
|
||||
if (Details.debug) then
|
||||
Details:Msg("(debug) |cFFFFFF00started a new combat|r|cFFFF7700", Details.encounter_table and Details.encounter_table.name or "")
|
||||
local from = debugstack(2, 1, 0)
|
||||
print("from:", from)
|
||||
--local from = debugstack(2, 1, 0)
|
||||
--print("from:", from)
|
||||
end
|
||||
|
||||
local segmentsTable = Details:GetCombatSegments()
|
||||
@@ -355,14 +355,29 @@
|
||||
local bFromCombatStart = true
|
||||
Details:UpdateParserGears(bFromCombatStart)
|
||||
|
||||
--get all buff already applied before the combat start
|
||||
--retrieve all buffs applied before the combat starts
|
||||
C_Timer.After(0.05, function()
|
||||
--wait the initial aura wipe done by the client on certain situations
|
||||
--wait for the initial aura wipe performed by the client in certain situations
|
||||
Details:CatchRaidBuffUptime("BUFF_UPTIME_IN")
|
||||
end)
|
||||
Details:CatchRaidDebuffUptime("DEBUFF_UPTIME_IN")
|
||||
Details:UptadeRaidMembersCache()
|
||||
|
||||
--is inside a mythic dungeon and running a mythic+?
|
||||
|
||||
if (newCombatObject.is_challenge or Details.debug) then
|
||||
--local bRegisterAuraScanTimeLine = true
|
||||
--Details222.AuraScan.AddAura(395152) --ebon might
|
||||
--Details222.AuraScan.AddAura(395296) --the evoker buff on it self
|
||||
--Details222.AuraScan.AddAura(410089--[[, bRegisterAuraScanTimeLine--]]) --prescience
|
||||
--Details222.AuraScan.AddAura(413984) --Shifting Sands
|
||||
--Details222.AuraScan.AddAura(409560) --Temporal Wound
|
||||
--Details222.AuraScan.AddAura(360827) --Blistering Scales
|
||||
--Details222.AuraScan.AddAura(410263) --Inferno's Blessing
|
||||
--Details222.AuraScan.RegisterCallback(Details222.SpecHelpers[1473].OnAugmentationBuffUpdate)
|
||||
--Details222.AuraScan.Start() --combat started (m+ active)
|
||||
end
|
||||
|
||||
--Details222.TimeCapture.StartCombatTimer(Details.tabela_vigente)
|
||||
|
||||
--we already have boss information? build .is_boss table
|
||||
@@ -464,6 +479,8 @@
|
||||
---@type combat
|
||||
local currentCombat = Details:GetCurrentCombat()
|
||||
|
||||
Details:SendEvent("COMBAT_PLAYER_LEAVING", nil, currentCombat)
|
||||
|
||||
if (currentCombat.bIsClosed) then
|
||||
return
|
||||
end
|
||||
@@ -505,13 +522,17 @@
|
||||
end
|
||||
end
|
||||
|
||||
Details:OnCombatPhaseChanged() --.PhaseData is nil here on alpha-32
|
||||
Details:OnCombatPhaseChanged()
|
||||
|
||||
if (currentCombat.bossFunction) then
|
||||
Details:CancelTimer(currentCombat.bossFunction)
|
||||
currentCombat.bossFunction = nil
|
||||
end
|
||||
|
||||
if (currentCombat.is_challenge or Details.debug) then
|
||||
--Details222.AuraScan.Stop() --combat ended (m+ active)
|
||||
end
|
||||
|
||||
--stop combat ticker
|
||||
Details:StopCombatTicker()
|
||||
|
||||
@@ -621,7 +642,7 @@
|
||||
local enemy = Details:FindEnemy()
|
||||
|
||||
if (enemy and Details.debug) then
|
||||
Details:Msg("(debug) enemy found", enemy)
|
||||
--Details:Msg("(debug) enemy found", enemy)
|
||||
end
|
||||
|
||||
currentCombat.enemy = enemy
|
||||
@@ -692,7 +713,7 @@
|
||||
Details:CaptureSet(false, "spellcast", false, 15)
|
||||
|
||||
if (Details.debug) then
|
||||
Details:Msg("(debug) freezing parser for 15 seconds.")
|
||||
--Details:Msg("(debug) freezing parser for 15 seconds.")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -839,12 +860,12 @@
|
||||
|
||||
Details.pre_pot_used = nil
|
||||
|
||||
--do not wipe the encounter table if is in the argus encounter ~REMOVE on 8.0
|
||||
--do not wipe the encounter table if is in the argus encounter
|
||||
if (Details.encounter_table and Details.encounter_table.id ~= 2092) then
|
||||
Details:Destroy(Details.encounter_table)
|
||||
else
|
||||
if (Details.debug) then
|
||||
Details:Msg("(debug) in argus encounter, cannot wipe the encounter table.")
|
||||
--Details:Msg("(debug) in argus encounter, cannot wipe the encounter table.")
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user