rearrange mesmerize end code

linzolle pointed out it doesn't work which is correct and this seems to work just fine now
This commit is contained in:
raspyosu
2020-02-28 00:07:14 -05:00
parent bc882b2126
commit 43e4877a34
@@ -108,6 +108,12 @@
to_chat(user, "<span class='notice'>[target] is fixed in place by your hypnotic gaze.</span>")
target.next_move = world.time + power_time // <--- Use direct change instead. We want an unmodified delay to their next move // target.changeNext_move(power_time) // check click.dm
target.notransform = TRUE // <--- Fuck it. We tried using next_move, but they could STILL resist. We're just doing a hard freeze.
spawn(power_time)
target.notransform = FALSE
// They Woke Up! (Notice if within view)
if(istype(user) && target.stat == CONSCIOUS && (target in view(10, get_turf(user))))
to_chat(user, "<span class='warning'>[target] has snapped out of their trance.</span>")
break
sleep(5)
else
@@ -120,13 +126,6 @@
break
// oops! if they knew how they could just spam stun the victim and themselves.
spawn(power_time)
if(istype(target) && success)
target.notransform = FALSE
// They Woke Up! (Notice if within view)
if(istype(user) && target.stat == CONSCIOUS && (target in view(10, get_turf(user))) )
to_chat(user, "<span class='warning'>[target] has snapped out of their trance.</span>")
/datum/action/bloodsucker/targeted/mesmerize/ContinueActive(mob/living/user, mob/living/target)
return ..() && CheckCanUse() && CheckCanTarget(target)