can't eat while buckled

This commit is contained in:
joep van der velden
2019-05-05 13:23:31 +02:00
parent 86cdeb3fa1
commit 7a55bca054
+9
View File
@@ -387,10 +387,19 @@
if(M == assailant && state >= GRAB_AGGRESSIVE) //no eatin unless you have an agressive grab
if(checkvalid(user, affecting)) //wut
var/mob/living/carbon/attacker = user
if(affecting.buckled)
to_chat(user, "<span class='warning'>[affecting] is buckled!</span>")
return
user.visible_message("<span class='danger'>[user] is attempting to devour \the [affecting]!</span>")
if(!do_after(user, checktime(user, affecting), target = affecting)) return
if(affecting.buckled)
to_chat(user, "<span class='warning'>[affecting] is buckled!</span>")
return
user.visible_message("<span class='danger'>[user] devours \the [affecting]!</span>")
if(affecting.mind)
add_attack_logs(attacker, affecting, "Devoured")