diff --git a/code/modules/antagonists/changeling/powers/headcrab.dm b/code/modules/antagonists/changeling/powers/headcrab.dm index 33f9ef2f5678..920cad4f34d7 100644 --- a/code/modules/antagonists/changeling/powers/headcrab.dm +++ b/code/modules/antagonists/changeling/powers/headcrab.dm @@ -11,11 +11,13 @@ /datum/action/changeling/headcrab/sting_action(mob/living/user) set waitfor = FALSE + if(tgui_alert(user,"Are we sure we wish to kill ourself and create a headslug?",,list("Yes", "No")) != "Yes") + return + if(QDELETED(user)) // Yogs: Implies maybe that the user was already gibbed or something. Prevents a null mob loc later on + return if(ismob(user.pulledby) && is_changeling(user.pulledby) && user.pulledby.grab_state >= GRAB_NECK) to_chat(user, span_warning("Our abilities are being dampened! We cannot use [src]!")) return - if(tgui_alert(usr,"Are we sure we wish to kill ourself and create a headslug?",,list("Yes", "No")) != "Yes") - return ..() var/datum/mind/M = user.mind var/list/organs = user.getorganszone(BODY_ZONE_HEAD, 1)