Skip to content

Commit

Permalink
fixes vampire being able to headbite hugged marines
Browse files Browse the repository at this point in the history
  • Loading branch information
DOOM authored and DOOM committed Jun 13, 2024
1 parent 3273691 commit d4a75a3
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -344,6 +344,12 @@
xeno.visible_message(SPAN_DANGER("[xeno] grabs [target_carbon]’s head aggressively."), \
SPAN_XENOWARNING("We grab [target_carbon]’s head aggressively."))

if(HAS_TRAIT(target_carbon, TRAIT_NESTED) || (target_carbon.status_flags & XENO_HOST))
for(var/obj/item/alien_embryo/embryo in target_carbon)
if(HIVE_ALLIED_TO_HIVE(xeno.hivenumber, embryo.hivenumber))
to_chat(xeno, SPAN_WARNING("We should not harm this host! It has a sister inside."))
return

if(!do_after(xeno, 0.8 SECONDS, INTERRUPT_NO_NEEDHAND, BUSY_ICON_HOSTILE, numticks = 2)) // would be 0.75 but that doesn't really work with numticks
return

Expand Down

0 comments on commit d4a75a3

Please sign in to comment.