Skip to content

Commit

Permalink
Coach feature update, moved check coach server to the top of the prio…
Browse files Browse the repository at this point in the history
…rity.
  • Loading branch information
Tercioo committed Nov 4, 2020
1 parent 8f381f1 commit bbef249
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions core/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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


Expand Down

0 comments on commit bbef249

Please sign in to comment.