I'm being too careless, sorry for the many commits.

This commit is contained in:
Ghommie
2019-06-12 23:22:31 +02:00
parent 7a8eaf41ac
commit e2bf5b73fd
+1 -1
View File
@@ -178,7 +178,7 @@
var/stuncharge = our_cell.charge
deductcharge(hitcost, FALSE)
if(QDELETED(src) || QDELETED(our_cell)) //it was rigged
return
return FALSE
if(stuncharge < hitcost)
if(stuncharge < (hitcost * STUNBATON_CHARGE_LENIENCY))
L.visible_message("<span class='warning'>[user] has prodded [L] with [src]. Luckily it is out of charge.</span>", \