fixes being able to transfer into golem shells after they're already taken and sending people into nullspace as a result. (#27497)

This commit is contained in:
kevinz000
2017-05-22 09:26:43 -03:00
committed by Leo
parent 670d01ef60
commit 40a5b1faac
@@ -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)