Skip to content

Commit

Permalink
Fixed progression traitor uplinks suddenly changing owners (tgstation…
Browse files Browse the repository at this point in the history
…#64928)

They could change if someone implanted themselves with an uplink from an uplink that didn't belong to them.
  • Loading branch information
Watermelon914 committed Feb 19, 2022
1 parent 6332561 commit 324f98c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions code/game/objects/items/implants/implantuplink.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@
. = ..()
var/datum/component/uplink/new_uplink = AddComponent(/datum/component/uplink, owner = target?.key, lockable = TRUE, enabled = FALSE, uplink_handler_override = uplink_handler, starting_tc = starting_tc)
new_uplink.unlock_text = "Your Syndicate Uplink has been cunningly implanted in you, for a small TC fee. Simply trigger the uplink to access it."
if(target.mind)
if(!uplink_handler)
new_uplink.uplink_handler.owner = target.mind
new_uplink.uplink_handler.assigned_role = target.mind.assigned_role.title
new_uplink.uplink_handler.assigned_species = target.dna.species.id


/**
* Proc called when component is removed; ie. uplink component
*
Expand Down

0 comments on commit 324f98c

Please sign in to comment.