Skip to content

Commit

Permalink
Fix monkeys ripping apart DNA scanners from the inside (#10356)
Browse files Browse the repository at this point in the history
* Fix monkeys ripping apart DNA scanners from the inside

* Check isturf
  • Loading branch information
Absolucy authored Jan 14, 2024
1 parent 696dc3c commit 165260c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/datums/ai/monkey/monkey_subtrees.dm
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
controller.queue_behavior(/datum/ai_behavior/consume, pick(food_candidates))
return

if(prob(50))
if(isturf(living_pawn.loc) && prob(50))
var/list/possible_targets = list()
for(var/atom/thing in view(2, living_pawn))
if(!thing.mouse_opacity)
Expand Down

0 comments on commit 165260c

Please sign in to comment.