mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-12 07:35:31 +01:00
Merge pull request #4499 from Neerti/1/3/2018_why
Fixes Exploit with Power Tools
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user