From 5d0fc8b1db59c5b59d535042edb28d0781c2ed62 Mon Sep 17 00:00:00 2001 From: Ben10Omintrix <138636438+Ben10Omintrix@users.noreply.github.com> Date: Wed, 14 Aug 2024 14:21:40 +0300 Subject: [PATCH] fixes monkey telekinesis (#85513) ## About The Pull Request fixes monkey ai hitting u from a distance with unloaded guns ## Why It's Good For The Game fixes monkey ai hitting u from a distance with unloaded guns ## Changelog :cl: fix: fixes monkey ai hitting u from a distance with unloaded guns /:cl: --- code/datums/ai/monkey/monkey_behaviors.dm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/datums/ai/monkey/monkey_behaviors.dm b/code/datums/ai/monkey/monkey_behaviors.dm index a5febe03143..e6720d7d96a 100644 --- a/code/datums/ai/monkey/monkey_behaviors.dm +++ b/code/datums/ai/monkey/monkey_behaviors.dm @@ -197,7 +197,7 @@ var/can_shoot = gun?.can_shoot() || FALSE if(gun && controller.blackboard[BB_MONKEY_GUN_WORKED] && prob(95)) // We attempt to attack even if we can't shoot so we get the effects of pulling the trigger - gun.melee_attack_chain(living_pawn, real_target) + gun.interact_with_atom(real_target, living_pawn) controller.set_blackboard_key(BB_MONKEY_GUN_WORKED, can_shoot ? TRUE : prob(80)) // Only 20% likely to notice it didn't work if(can_shoot) controller.set_blackboard_key(BB_MONKEY_GUN_NEURONS_ACTIVATED, TRUE)