Cigarettes Glitch Fix (#17361)

Fixes #17280
This commit is contained in:
Wowzewow (Wezzy)
2023-09-19 04:38:15 +08:00
committed by GitHub
parent 04fa0020db
commit a831982d22
2 changed files with 43 additions and 2 deletions

View File

@@ -327,11 +327,11 @@
if(!opened)
to_chat(user, SPAN_NOTICE("\The [src] is closed."))
return
if(use_check(M))
if(!use_check(M))
to_chat(usr, SPAN_WARNING("[M.name] is in no condition to handle items!"))
return
if(target_zone == BP_MOUTH && contents.len > 0)
var/obj/item/clothing/mask/smokable/cigarette/W = new cigarette_to_spawn(src)
var/obj/item/clothing/mask/smokable/cigarette/W = new cigarette_to_spawn(M)
if(!istype(W) || M.wear_mask)
to_chat(user, SPAN_NOTICE("\The [M.wear_mask] is in the way."))
if(M != user)