diff --git a/code/game/gamemodes/objective.dm b/code/game/gamemodes/objective.dm index 47c41d841fe..09cd6f62de8 100644 --- a/code/game/gamemodes/objective.dm +++ b/code/game/gamemodes/objective.dm @@ -205,6 +205,17 @@ GLOBAL_LIST_INIT(potential_theft_objectives, (subtypesof(/datum/theft_objective) /datum/objective/protect/mindslave //subytpe for mindslave implants +/datum/objective/protect/mindslave/on_target_cryo() + if(owner?.current) + to_chat(owner.current, "
You notice that your master has cryoed, and revert to your normal self, untill they return again. You are no longer a mindslave!") + SEND_SOUND(owner.current, sound('sound/ambience/alarm4.ogg')) + owner.objectives -= src + GLOB.all_objectives -= src + owner.remove_antag_datum(/datum/antagonist/mindslave) + SSticker.mode.implanted.Remove(owner) + log_admin("[key_name(usr)] mindslave master has cryo'd, and is no longer a mindslave.") + message_admins("[key_name_admin(usr)] mindslave master has cryo'd, and is no longer a mindslave.") //Since they were on antag hud earlier, this feels important to log + qdel(src) /datum/objective/hijack martyr_compatible = 0 //Technically you won't get both anyway.