From eeadc9a0e78ded982bd7b2b8a0a4a32a8329539e Mon Sep 17 00:00:00 2001 From: DeltaFire Date: Mon, 6 Jul 2020 23:00:36 +0200 Subject: [PATCH] fixes the kill once objective the target being afk / disconnecting is now only accepted at roundend, and doesn't lead to it being regarded as permanently completed midround. --- code/game/gamemodes/objective.dm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/game/gamemodes/objective.dm b/code/game/gamemodes/objective.dm index 3b95b1281f..6312dc08a4 100644 --- a/code/game/gamemodes/objective.dm +++ b/code/game/gamemodes/objective.dm @@ -201,10 +201,13 @@ GLOBAL_LIST_EMPTY(objectives) return won || ..() /datum/objective/assassinate/once/process() - won = check_completion() + won = check_midround_completion() if(won) STOP_PROCESSING(SSprocessing,src) +/datum/objective/assassinate/once/proc/check_midround_completion() + return won || !considered_alive(target) //The target afking / logging off for a bit during the round doesn't complete it, but them being afk at roundend does. + /datum/objective/assassinate/internal var/stolen = 0 //Have we already eliminated this target?