Fixes runtime with ducks and turrets

Fixes ducks trying to figure out whether the turret that just shot them shot bullets or breadcrumbs.
This commit is contained in:
Verkister
2021-11-11 13:04:45 +02:00
committed by atermonera
parent d776765ccf
commit c5d703f6da

View File

@@ -57,9 +57,10 @@
. = ..()
var/has_food = FALSE
for(var/obj/item/I in L.get_contents()) // Do they have food?
if(istype(I, /obj/item/weapon/reagent_containers/food))
has_food = TRUE
break
if(isliving(L))
for(var/obj/item/I in L.get_contents()) // Do they have food?
if(istype(I, /obj/item/weapon/reagent_containers/food))
has_food = TRUE
break
if(has_food) // Yes? Gimme the food.
return FALSE