fix steal identity objectives not syncing to their linked assassinate objectives (#19809)

This commit is contained in:
SteelSlayer
2022-12-03 08:35:13 -05:00
committed by GitHub
parent 5d48624ae8
commit d95f2fd97c
3 changed files with 47 additions and 13 deletions
@@ -151,11 +151,8 @@
var/mob/living/carbon/human/H = kill_objective.target?.current
if(!(locate(/datum/objective/escape) in owner.get_all_objectives()) && H && !HAS_TRAIT(H, TRAIT_GENELESS))
var/datum/objective/escape/escape_with_identity/identity_theft = new
var/datum/objective/escape/escape_with_identity/identity_theft = new(assassinate = kill_objective)
identity_theft.owner = owner
identity_theft.target = kill_objective.target
identity_theft.target_real_name = kill_objective.target.current.real_name
identity_theft.explanation_text = "Escape on the shuttle or an escape pod with the identity of [identity_theft.target_real_name], the [identity_theft.target.assigned_role] while wearing [identity_theft.target.p_their()] identification card."
objectives += identity_theft
if(!(locate(/datum/objective/escape) in owner.get_all_objectives()))