Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions networking/action_handlers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -957,6 +957,8 @@ end
-- Dual-call: dispatched from network (fromNemesis defaults to true) or self-triggered
-- by MP.ACTIONS.start_ante_timer (passes fromNemesis = false explicitly).
local function action_start_ante_timer(p)
if p.isPvP and (MP.GAME.end_pvp or not MP.is_pvp_boss() or G.GAME.current_round.hands_left <= 0) then return end

local time = p.time
local from_nemesis = p.fromNemesis
if from_nemesis == nil then from_nemesis = true end
Expand Down Expand Up @@ -1290,9 +1292,11 @@ function MP.ACTIONS.request_nemesis_stats()
end

function MP.ACTIONS.start_ante_timer()
local is_pvp = MP.is_pvp_boss() and MP.is_layer_active("pvp_timer")
Client.send({
action = "startAnteTimer",
time = MP.GAME.timer,
isPvP = is_pvp or nil,
})
action_start_ante_timer({ time = MP.GAME.timer, fromNemesis = false })
end
Expand Down