mindswap + stand interaction

This commit is contained in:
PKPenguin321
2019-05-02 21:16:53 -07:00
parent 9975e3c622
commit 04855c36e7
@@ -66,6 +66,16 @@ Also, you never added distance checking after target is selected. I've went ahea
to_chat(user, "<span class='warning'>[target.p_their(TRUE)] mind is resisting your spell!</span>")
return
if(istype(target, /mob/living/simple_animal/hostile/guardian))
var/mob/living/simple_animal/hostile/guardian/stand = target
if(stand.summoner)
if(stand.summoner == user)
if(!silent)
to_chat(user, "<span class='warning'>Swapping minds with your own guardian would just put you back into your own head!</span>")
return
else
target = stand.summoner
var/mob/living/victim = target//The target of the spell whos body will be transferred to.
var/mob/living/caster = user//The wizard/whomever doing the body transferring.