From 6e32dd419702bab4486664773c775d7d1e853983 Mon Sep 17 00:00:00 2001 From: AnturK Date: Mon, 9 Nov 2015 22:03:47 +0100 Subject: [PATCH] Fixes mind swap kicking out the victim client --- code/datums/spells/mind_transfer.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/datums/spells/mind_transfer.dm b/code/datums/spells/mind_transfer.dm index cb101ef5d8c..7ed4d7e2b68 100644 --- a/code/datums/spells/mind_transfer.dm +++ b/code/datums/spells/mind_transfer.dm @@ -67,7 +67,8 @@ Also, you never added distance checking after target is selected. I've went ahea caster.verbs += V ghost.mind.transfer_to(caster) - caster.key = ghost.key //have to transfer the key since the mind was not active + if(ghost.key) + caster.key = ghost.key //have to transfer the key since the mind was not active if(caster.mind.special_verbs.len)//If they had any special verbs, we add them here. for(var/V in caster.mind.special_verbs)