mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 15:47:15 +01:00
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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user