Merge pull request #11971 from Heroman3003/grabattack

Makes player-controlled simplemobs not do attacks when on grab intent
This commit is contained in:
Casey
2021-12-08 04:17:48 +00:00
committed by Chompstation Bot
parent 680cffa88a
commit ac33c3341b
2 changed files with 2 additions and 7 deletions
@@ -34,6 +34,8 @@
if(I_GRAB)
if(has_hands)
A.attack_hand(src)
else if(isliving(A) && src.client)
animal_nom(A)
else
attack_target(A)
@@ -279,13 +279,6 @@
return MOVEMENT_FAILED //Mobs aren't that stupid, probably
return ..() // Procede as normal.
//Grab = Nomf
/mob/living/simple_mob/UnarmedAttack(var/atom/A, var/proximity)
. = ..()
if(a_intent == I_GRAB && isliving(A) && !has_hands)
animal_nom(A)
// Riding
/datum/riding/simple_mob
keytype = /obj/item/weapon/material/twohanded/riding_crop // Crack!