mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 12:07:27 +01:00
Fixes infinite charge stunbaton and stunprod exploit (#16012)
* Fixes infinite baton charge exploit * moved it to the right proc
This commit is contained in:
@@ -76,6 +76,10 @@
|
||||
if(!cell)
|
||||
return
|
||||
cell.use(amount)
|
||||
if(cell.rigged)
|
||||
cell = null
|
||||
turned_on = FALSE
|
||||
update_icon()
|
||||
if(cell.charge < (hitcost)) // If after the deduction the baton doesn't have enough charge for a stun hit it turns off.
|
||||
turned_on = FALSE
|
||||
update_icon()
|
||||
|
||||
Reference in New Issue
Block a user