Fixes agent IDs not working when you are put into a different body (#21784)

* needs testing

* okay this works

* pinpointer fix

* Steelslayer review

* my bad, sorry
This commit is contained in:
DGamerL
2023-07-26 05:14:55 +02:00
committed by GitHub
parent 23503fd5dc
commit 1d4f3187ee
2 changed files with 9 additions and 5 deletions
@@ -39,10 +39,10 @@
/obj/item/pinpointer/crew/contractor/attack_self(mob/living/user)
if(owner)
if(owner != user)
if(owner != user.mind.current)
to_chat(user, "<span class='warning'>[src] refuses to do anything.</span>")
return
else
owner = user
owner = user.mind.current
to_chat(user, "<span class='notice'>[src] now recognizes you as its sole user.</span>")
return ..()