Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
7 changes: 6 additions & 1 deletion code/game/objects/items/stunbaton.dm
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,12 @@
if(cell)
//Note this value returned is significant, as it will determine
//if a stun is applied or not
. = cell.use(chrgdeductamt)
var/mob/living/M = loc
if(M && iscyborg(M))
var/mob/living/silicon/robot/R = loc
R.cell.use(chrgdeductamt)
else
. = cell.use(chrgdeductamt)
if(status && cell.charge < hitcost)
//we're below minimum, turn off
status = FALSE
Expand Down