Merge pull request #1105 from Citadel-Station-13/upstream-merge-27497

[MIRROR] fixes being able to transfer into golem shells after they're already taken and sending people into nullspace as a result.
This commit is contained in:
LetterJay
2017-05-23 07:14:58 -05:00
committed by GitHub
@@ -152,6 +152,8 @@
var/transfer_choice = alert("Transfer your soul to [src]? (Warning, your old body will die!)",,"Yes","No")
if(transfer_choice != "Yes")
return
if(QDELETED(src) || uses <= 0)
return
log_game("[user.ckey] golem-swapped into [src]")
user.visible_message("<span class='notice'>A faint light leaves [user], moving to [src] and animating it!</span>","<span class='notice'>You leave your old body behind, and transfer into [src]!</span>")
create(ckey = user.ckey, flavour = FALSE, name = user.real_name)