Fixes AIize (Player panel Make AI button) killing the client of whoever it was used on (#66168)

* Fixes AIize (somehow)

* Why does this even exist it's never false

* Someone please explain why this is a bad idea
This commit is contained in:
GoblinBackwards
2022-04-17 01:16:03 -04:00
committed by GitHub
parent ca7ddc14fd
commit edcd1d70ba
2 changed files with 2 additions and 9 deletions
+1 -8
View File
@@ -59,7 +59,7 @@
SEND_SIGNAL(src, COMSIG_MONKEY_HUMANIZE)
return src
/mob/proc/AIize(transfer_after = TRUE, client/preference_source, move = TRUE)
/mob/proc/AIize(client/preference_source, move = TRUE)
var/list/turf/landmark_loc = list()
if(!move)
@@ -88,13 +88,6 @@
var/mob/living/silicon/ai/our_AI = new /mob/living/silicon/ai(pick(landmark_loc), null, src)
. = our_AI
if(mind)
if(!transfer_after)
mind.active = FALSE
mind.transfer_to(our_AI)
else if(transfer_after)
our_AI.key = key
if(preference_source)
apply_pref_name(/datum/preference/name/ai, preference_source)