From bbef2496c58795a9507691f2e8be00a88ffd49a6 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Wed, 4 Nov 2020 11:04:43 -0300 Subject: [PATCH] Coach feature update, moved check coach server to the top of the priority. --- core/util.lua | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/core/util.lua b/core/util.lua index c4903c820..d83fe31c8 100644 --- a/core/util.lua +++ b/core/util.lua @@ -853,7 +853,13 @@ end _detalhes:BrokerTick() _detalhes:HealthTick() - if ((_detalhes.zone_type == "pvp" and _detalhes.use_battleground_server_parser) or _detalhes.zone_type == "arena" or _InCombatLockdown()) then + if (Details.Coach.Server.IsEnabled()) then + if (Details.debug) then + print("coach server is enabled, can't leave combat...") + end + return true + + elseif ((_detalhes.zone_type == "pvp" and _detalhes.use_battleground_server_parser) or _detalhes.zone_type == "arena" or _InCombatLockdown()) then return true elseif (_UnitAffectingCombat("player")) then @@ -872,13 +878,6 @@ end return true end end - - elseif (Details.Coach.Server.IsEnabled()) then - if (Details.debug) then - print("coach server is enabled, can't leave combat...") - end - return true - end