Fix pAI suicide while in holoform deleting the card (#38279)

This commit is contained in:
Tad Hardesty
2018-06-07 18:06:27 -07:00
committed by letterjay
parent 1fbf5af360
commit 38a3c8549f
4 changed files with 9 additions and 10 deletions
@@ -3,8 +3,6 @@
return
stat = DEAD
canmove = 0
card.removePersonality()
card.forceMove(loc)
update_sight()
clear_fullscreens()
@@ -90,6 +90,11 @@
return FALSE
/mob/living/silicon/pai/Destroy()
if (loc != card)
card.forceMove(drop_location())
card.pai = null
card.cut_overlays()
card.add_overlay("pai-off")
GLOB.pai_list -= src
return ..()
@@ -57,7 +57,7 @@
if(client)
client.perspective = EYE_PERSPECTIVE
client.eye = card
var/turf/T = get_turf(src)
var/turf/T = drop_location()
card.forceMove(T)
forceMove(card)
canmove = FALSE