From 809c17710dfc17ccf914033d3ff356611abfd289 Mon Sep 17 00:00:00 2001 From: Zuhayr Date: Mon, 19 Aug 2013 15:46:40 -0700 Subject: [PATCH] Borer prompt will now actually work without runtimes. --- code/modules/mob/living/simple_animal/borer.dm | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/code/modules/mob/living/simple_animal/borer.dm b/code/modules/mob/living/simple_animal/borer.dm index d68aaec7330..b457f4b15b1 100644 --- a/code/modules/mob/living/simple_animal/borer.dm +++ b/code/modules/mob/living/simple_animal/borer.dm @@ -379,12 +379,16 @@ mob/living/simple_animal/borer/proc/question(var/client/C) if(!C || ckey) return if(response == "Yes") - transfer_personality(src) + transfer_personality(C) else if (response == "Never for this round") C.prefs.be_special ^= BE_ALIEN -mob/living/simple_animal/borer/proc/transfer_personality(var/mob/candidate) +mob/living/simple_animal/borer/proc/transfer_personality(var/client/candidate) - src.mind = candidate.mind + if(!candidate) + return + + src.mind = candidate.mob.mind src.ckey = candidate.ckey - src.mind.assigned_role = "Cortical Borer" \ No newline at end of file + if(src.mind) + src.mind.assigned_role = "Cortical Borer" \ No newline at end of file