From 71e7306706fcfa3ed743eba2a95bdf5bf2cbdff0 Mon Sep 17 00:00:00 2001 From: Shadow-Quill <44811257+Shadow-Quill@users.noreply.github.com> Date: Wed, 16 Sep 2020 15:01:12 -0500 Subject: [PATCH] Change Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> --- code/game/objects/items/devices/aicard.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/game/objects/items/devices/aicard.dm b/code/game/objects/items/devices/aicard.dm index 977cd6dca7a..314a43832eb 100644 --- a/code/game/objects/items/devices/aicard.dm +++ b/code/game/objects/items/devices/aicard.dm @@ -90,7 +90,7 @@ to_chat(user, "You are already wiping this AI!") return var/confirm = alert("Are you sure you want to wipe this card's memory? This cannot be undone once started.", "Confirm Wipe", "Yes", "No") - if(confirm == "Yes" && (CanUseTopic(user, state) == STATUS_INTERACTIVE)) // And make doubly sure they want to wipe (three total clicks) + if(confirm == "Yes" && (tgui_status(user, GLOB.tgui_default_state) == STATUS_INTERACTIVE)) // And make doubly sure they want to wipe (three total clicks) msg_admin_attack("[key_name_admin(user)] wiped [key_name_admin(AI)] with \the [src].", ATKLOG_FEW) add_attack_logs(user, AI, "Wiped with [src].") INVOKE_ASYNC(src, .proc/wipe_ai)