From c5e35c5abb4b08d7f46b54a12d2c40ddfdf174ab Mon Sep 17 00:00:00 2001 From: Aranclanos Date: Sun, 9 Oct 2016 19:25:52 -0300 Subject: [PATCH] Fixed a runtime where bees would sting a mob without reagents (#20817) --- code/modules/mob/living/simple_animal/hostile/bees.dm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/code/modules/mob/living/simple_animal/hostile/bees.dm b/code/modules/mob/living/simple_animal/hostile/bees.dm index 2f09653734f..0ec5aebdef5 100644 --- a/code/modules/mob/living/simple_animal/hostile/bees.dm +++ b/code/modules/mob/living/simple_animal/hostile/bees.dm @@ -146,8 +146,9 @@ else if(beegent && isliving(target)) var/mob/living/L = target - beegent.reaction_mob(L, INJECT) - L.reagents.add_reagent(beegent.id, rand(1,5)) + if(L.reagents) + beegent.reaction_mob(L, INJECT) + L.reagents.add_reagent(beegent.id, rand(1,5)) target.attack_animal(src)