[MIRROR] Fixes runtime with mime kissing [MDB IGNORE] (#19332)

* Fixes runtime with mime kissing (#73394)

## About The Pull Request

Not all living mobs have a reagent datum, but you can kiss all living
mobs.

## Changelog

🆑 Melbert
fix: Fixed a runtime from mime *kissing silicons and simplemobs.
/🆑

* Fixes runtime with mime kissing

---------

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
SkyratBot
2023-02-14 02:43:51 +00:00
committed by GitHub
co-authored by MrMelbert
parent 3334cbf891
commit 54977bec0f
+3 -1
View File
@@ -629,8 +629,10 @@
/obj/projectile/kiss/french/harmless_on_hit(mob/living/living_target)
. = ..()
if(isnull(living_target.reagents))
return
//Don't stack the garlic
if(! living_target.has_reagent(/datum/reagent/consumable/garlic) )
if(!living_target.has_reagent(/datum/reagent/consumable/garlic))
//Phwoar
living_target.reagents.add_reagent(/datum/reagent/consumable/garlic, 1)
living_target.visible_message("[living_target] has a funny look on [living_target.p_their()] face.", "Wow, that is a strong after taste of garlic!", vision_distance=COMBAT_MESSAGE_RANGE)