Fixes EMP Flashlight not working on Cyborgs (#92339)

## About The Pull Request
Shitcode that fixes a bug. Before, it would try to run through the
normal flashlight procedure, which potentially involves deleting your
traitor item and fixing the borg's flightlight (or more likely you'd
just get the message about the cover being closed and that's the end of
it.)

Technically it did work if you were on combat but that's very intuitive.
This commit is contained in:
zxaber
2025-08-04 20:53:32 -04:00
committed by Roxy
parent 4acb813614
commit cdfffadfa0
@@ -172,7 +172,7 @@ GLOBAL_LIST_INIT(blacklisted_borg_hats, typecacheof(list( //Hats that don't real
balloon_alert(user, "toner filled")
return ITEM_INTERACT_SUCCESS
if(istype(tool, /obj/item/flashlight))
if(istype(tool, /obj/item/flashlight) && !istype(tool, /obj/item/flashlight/emp)) //subtypes my behated. OOP was a dumb idea
if(user.combat_mode)
return NONE
if(!opened)