Skip to content

Commit

Permalink
Fixes facehuggers ghosting upon unsuccessful attachment
Browse files Browse the repository at this point in the history
  • Loading branch information
Vicacrov committed Jan 15, 2024
1 parent 9064d4e commit 08a28bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions code/modules/mob/living/carbon/xenomorph/castes/Facehugger.dm
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@
/mob/living/carbon/xenomorph/facehugger/proc/handle_hug(mob/living/carbon/human/human)
var/obj/item/clothing/mask/facehugger/hugger = new /obj/item/clothing/mask/facehugger(loc, hivenumber)
var/did_hug = hugger.attach(human, TRUE, 1, src)
if(!did_hug)
qdel(hugger)
return
if(client)
client.player_data?.adjust_stat(PLAYER_STAT_FACEHUGS, STAT_CATEGORY_XENO, 1)
qdel(src)
Expand Down

0 comments on commit 08a28bd

Please sign in to comment.