Intellicarded AIs can no longer access the AI shell borg (#14259)

This commit is contained in:
Doxxmedearly
2022-06-09 17:39:19 +02:00
committed by GitHub
parent 862c9e2aea
commit 04c25a2bfd
3 changed files with 11 additions and 0 deletions
@@ -135,6 +135,10 @@
admin_attack_log(user, ai, "Carded with [src.name]", "Was carded with [src.name]", "used the [src.name] to card")
src.name = "[initial(name)] - [ai.name]"
if(ai.vr_mob) //Kick the AI out of its shell before we stuff it in a card.
var/mob/living/silicon/shell = ai.vr_mob
if(istype(shell))
shell.body_return()
ai.forceMove(src)
ai.destroy_eyeobj(src)
ai.cancel_camera()