diff --git a/code/modules/mob/living/silicon/pai/pai.dm b/code/modules/mob/living/silicon/pai/pai.dm
index 4e33fba208..71342664de 100644
--- a/code/modules/mob/living/silicon/pai/pai.dm
+++ b/code/modules/mob/living/silicon/pai/pai.dm
@@ -322,6 +322,16 @@
else
to_chat(user, "Encryption Key ports not configured.")
+/obj/item/paicard/emag_act(mob/user) // Emag to wipe the master DNA and supplemental directive
+ if(!pai)
+ return
+ to_chat(user, "You override [pai]'s directive system, clearing its master string and supplied directive.")
+ to_chat(pai, "Warning: System override detected, check directive sub-system for any changes.'")
+ log_game("[key_name(user)] emagged [key_name(pai)], wiping their master DNA and supplemental directive.")
+ pai.master = null
+ pai.master_dna = null
+ pai.laws.supplied[1] = "None." // Sets supplemental directive to this
+
/mob/living/silicon/pai/proc/short_radio()
if(radio_short_timerid)
deltimer(radio_short_timerid)