Fixed a runtime where bees would sting a mob without reagents (#20817)

This commit is contained in:
Aranclanos
2016-10-09 17:25:52 -05:00
committed by KorPhaeron
parent 16e23f2692
commit c5e35c5abb
@@ -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)