[MIRROR] Stops the AI from being gibbed when they attempt to deactivate the MODsuit on behalf of the ninja [MDB IGNORE] (#17130)

* Stops the AI from being gibbed when they attempt to deactivate the MODsuit on behalf of the ninja (#70775)

dont gib the AI please

* Stops the AI from being gibbed when they attempt to deactivate the MODsuit on behalf of the ninja

* pAI in modsuits

Co-authored-by: Zephyr <12817816+ZephyrTFA@users.noreply.github.com>
Co-authored-by: tastyfish <crazychris32@gmail.com>
This commit is contained in:
SkyratBot
2022-10-25 05:37:52 +02:00
committed by GitHub
parent 3b7abd584a
commit a0cb80ea8a
@@ -257,6 +257,11 @@
. = ..()
if(. != MOD_CANCEL_ACTIVATE || !isliving(user))
return
// SKYRAT EDIT CHANGE BEGIN - pAIs in MODsuits - `ai` replaced with `mod_pai`
if(mod.mod_pai == user)
to_chat(mod.mod_pai, span_danger("<B>fATaL EERRoR</B>: 381200-*#00CODE <B>BLUE</B>\nAI INTErFERenCE DEtECted\nACTi0N DISrEGArdED"))
return
// SKYRAT EDIT CHANGE END
var/mob/living/living_user = user
to_chat(living_user, span_danger("<B>fATaL EERRoR</B>: 382200-*#00CODE <B>RED</B>\nUNAUTHORIZED USE DETECteD\nCoMMENCING SUB-R0UTIN3 13...\nTERMInATING U-U-USER..."))
living_user.gib()