Another e-net tweak

Exploit where if you started breaking the net from the OUTSIDE, even if pulled away from you, you could break it. Adds a target to the do_after.
This commit is contained in:
Arokha Sieyes
2017-04-11 21:03:09 -04:00
parent 43f6f48abb
commit 7e69bafa53

View File

@@ -136,7 +136,7 @@
/obj/effect/energy_net/user_unbuckle_mob(mob/user) /obj/effect/energy_net/user_unbuckle_mob(mob/user)
user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN) user.setClickCooldown(DEFAULT_ATTACK_COOLDOWN)
visible_message("<span class='danger'>[user] begins to tear at \the [src]!</span>") visible_message("<span class='danger'>[user] begins to tear at \the [src]!</span>")
if(do_after(usr, escape_time, incapacitation_flags = INCAPACITATION_DEFAULT & ~(INCAPACITATION_RESTRAINED | INCAPACITATION_BUCKLED_FULLY))) if(do_after(usr, escape_time, src, incapacitation_flags = INCAPACITATION_DEFAULT & ~(INCAPACITATION_RESTRAINED | INCAPACITATION_BUCKLED_FULLY)))
if(!buckled_mob) if(!buckled_mob)
return return
visible_message("<span class='danger'>[user] manages to tear \the [src] apart!</span>") visible_message("<span class='danger'>[user] manages to tear \the [src] apart!</span>")