diff --git a/core/control.lua b/core/control.lua index c5416735..c05ea787 100644 --- a/core/control.lua +++ b/core/control.lua @@ -886,7 +886,7 @@ function _detalhes:EnteredInArena() if (_detalhes.debug) then - _detalhes:Msg ("(debug) arena detected.") + _detalhes:Msg ("(debug) the player EnteredInArena().") end _detalhes.arena_begun = false @@ -896,6 +896,10 @@ function _detalhes:LeftArena() + if (_detalhes.debug) then + _detalhes:Msg ("(debug) player LeftArena().") + end + _detalhes.is_in_arena = false _detalhes.arena_begun = false diff --git a/core/parser.lua b/core/parser.lua index 553cf2df..b45e9f7e 100644 --- a/core/parser.lua +++ b/core/parser.lua @@ -3417,7 +3417,7 @@ SPELL_POWER_OBSOLETE2 = 15; if (zoneType == "pvp") then --> battlegrounds if (_detalhes.debug) then - _detalhes:Msg ("(debug) battleground found.") + _detalhes:Msg ("(debug) zone type is now 'pvp'.") end _detalhes.is_in_battleground = true @@ -3449,7 +3449,7 @@ SPELL_POWER_OBSOLETE2 = 15; elseif (zoneType == "arena") then if (_detalhes.debug) then - _detalhes:Msg ("(debug) zone type is arena.") + _detalhes:Msg ("(debug) zone type is now 'arena'.") end if (_detalhes.force_activity_time_pvp) then @@ -3786,19 +3786,23 @@ SPELL_POWER_OBSOLETE2 = 15; end --if (C_Scenario.IsChallengeMode() and _detalhes.overall_clear_newchallenge) then - if (_detalhes.overall_clear_newchallenge) then --C_Scenario.IsChallengeMode() and parece que não existe mais - _detalhes.historico:resetar_overall() +-- if (_detalhes.overall_clear_newchallenge) then --C_Scenario.IsChallengeMode() and parece que não existe mais +-- _detalhes.historico:resetar_overall() +-- if (_detalhes.debug) then +-- _detalhes:Msg ("(debug) timer is a challenge mode start.") +-- end + + if (_detalhes.is_in_arena) then if (_detalhes.debug) then - _detalhes:Msg ("(debug) timer is a challenge mode start.") + _detalhes:Msg ("(debug) timer is an arena countdown.") end - - elseif (_detalhes.is_in_arena) then _detalhes:StartArenaSegment (...) - if (_detalhes.debug) then - _detalhes:Msg ("(debug) timer is a arena countdown.") - end elseif (_detalhes.is_in_battleground) then + if (_detalhes.debug) then + _detalhes:Msg ("(debug) timer is a battleground countdown.") + end + local timerType, timeSeconds, totalTime = select (1, ...) if (_detalhes.start_battleground) then