Fixes resisting out of grabs while hypnotized (or stunned) (#4701)

Previously, people could resist spam their way out of grabs while hypnotized, causing vampires to have to eat shit and die for trying to use their basic solo target abilities.

This was due to there being no special exceptions in place for resisting out of a grab when you are stunned.

Fixes #4689
This commit is contained in:
Kaedwuff
2018-05-09 23:56:52 +03:00
committed by Erki
parent 94a1af3577
commit 3c2740cddb
2 changed files with 45 additions and 0 deletions
+8
View File
@@ -677,7 +677,15 @@ default behaviour is:
if(buckled)
buckled.user_unbuckle_mob(src)
/mob/living/var/last_resist
/mob/living/proc/resist_grab()
if (last_resist + 4 > world.time)
return
last_resist = world.time
if (stat || paralysis || stunned)
src << "<span class='notice'>You can't move...</span>"
return
var/resisting = 0
for(var/obj/O in requests)
requests.Remove(O)