From c4a65579a98b5d989de64433234074946b770a59 Mon Sep 17 00:00:00 2001 From: Atlantiscze Date: Fri, 24 Apr 2020 09:47:32 +0200 Subject: [PATCH] Fixes Intellicore grabbing AI multiple times - If you click multiple times during the do_after timer, you may try to grab the AI multiple times, possibly breaking stuff. - Should fix #5179 --- code/game/objects/items/devices/aicard.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/game/objects/items/devices/aicard.dm b/code/game/objects/items/devices/aicard.dm index 05260e3d2f..f20e340f34 100644 --- a/code/game/objects/items/devices/aicard.dm +++ b/code/game/objects/items/devices/aicard.dm @@ -115,6 +115,9 @@ show_message(span("critical", "\The [user] is transferring you into \the [src]!")) if(do_after(user, 100)) + if(carded_ai) + to_chat(user, "Transfer failed: Existing AI found on remote device. Remove existing AI to install a new one.") + return 0 if(istype(ai.loc, /turf/)) new /obj/structure/AIcore/deactivated(get_turf(ai))