From b35050433b6f564ccaa6b44f09240ff3f2694548 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Wed, 2 Sep 2020 03:02:17 +0200 Subject: [PATCH] [MIRROR] Fixes xenomorph larva getting stuck by evolving while ventcrawling (#604) * Fixes xenomorph larva getting stuck by evolving while ventcrawling #53265 * Fixes xenomorph larva getting stuck by evolving while ventcrawling Co-authored-by: Wayland-Smithy <64715958+Wayland-Smithy@users.noreply.github.com> --- code/modules/mob/living/carbon/alien/larva/powers.dm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/modules/mob/living/carbon/alien/larva/powers.dm b/code/modules/mob/living/carbon/alien/larva/powers.dm index 85a9b7746bf..8ec61e1f178 100644 --- a/code/modules/mob/living/carbon/alien/larva/powers.dm +++ b/code/modules/mob/living/carbon/alien/larva/powers.dm @@ -44,6 +44,10 @@ to_chat(L, "Drones are the weakest and slowest of the castes, but can grow into a praetorian and then queen if no queen exists, and are vital to maintaining a hive with their resin secretion abilities.") var/alien_caste = alert(L, "Please choose which alien caste you shall belong to.",,"Hunter","Sentinel","Drone") + if(L.movement_type & VENTCRAWLING) + to_chat(user, "You cannot evolve while ventcrawling!") + return + if(user.incapacitated()) //something happened to us while we were choosing. return