mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-28 15:47:15 +01:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user