[MIRROR] Begin clickcode attack_self fix (#12173)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-12-29 13:51:44 -07:00
committed by GitHub
parent 063cf6cf48
commit 3cac28f9ad
361 changed files with 2676 additions and 998 deletions
@@ -114,7 +114,10 @@
return ..()
// On-click handling. Turns on the computer if it's off and opens the GUI.
/obj/item/modular_computer/attack_self(var/mob/user)
/obj/item/modular_computer/attack_self(mob/user)
. = ..(user)
if(.)
return TRUE
if(enabled && screen_on)
if(isliving(user) && HAS_TRAIT(user, TRAIT_UNLUCKY) && prob(5))
var/mob/living/unlucky_soul = user