Merge pull request #4499 from Neerti/1/3/2018_why

Fixes Exploit with Power Tools
This commit is contained in:
Neerti
2018-01-03 15:50:02 -05:00
committed by GitHub
3 changed files with 79 additions and 12 deletions
+5
View File
@@ -149,6 +149,11 @@
set category = "Object"
set src = usr
if(world.time <= next_click) // This isn't really a 'click' but it'll work for our purposes.
return
next_click = world.time + 1
if(istype(loc,/obj/mecha)) return
if(hand)
@@ -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)