Fixes Exploit with Power Tools

This commit is contained in:
Neerti
2018-01-03 15:35:35 -05:00
parent c443875898
commit 5a0a04d2dd
3 changed files with 79 additions and 12 deletions

View File

@@ -929,6 +929,11 @@
set category = "IC"
set src = usr
if(world.time <= next_click) // Hard check, before anything else, to avoid crashing
return
next_click = world.time + 1
var/obj/item/W = get_active_hand()
if (W)
W.attack_self(src)