mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 18:44:48 +01:00
non-mobs typically don't have any cigarettes, mate (#30924)
This commit is contained in:
@@ -1043,7 +1043,7 @@ GLOBAL_DATUM_INIT(welding_sparks, /mutable_appearance, mutable_appearance('icons
|
||||
* * direct_attackby_item - Used if the cigarette item is clicked on directly with a lighter instead of a mob wearing a cigarette.
|
||||
*/
|
||||
/obj/item/proc/cigarette_lighter_act(mob/living/user, mob/living/target, obj/item/direct_attackby_item)
|
||||
if(!user || !target)
|
||||
if(!user || !istype(target))
|
||||
return null
|
||||
|
||||
var/obj/item/clothing/mask/cigarette/cig = direct_attackby_item ? direct_attackby_item : target.wear_mask
|
||||
|
||||
Reference in New Issue
Block a user