mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 03:57:13 +01:00
can't eat while buckled
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user