fixes being able to break plasma pistols (#18043)

This commit is contained in:
Qwertytoforty
2022-06-22 17:53:58 +01:00
committed by GitHub
parent ff912fe937
commit d9b2a0c4ae
@@ -349,6 +349,8 @@
if(cell.charge <= 140) //at least 6 seconds of charge time
to_chat(user, "<span class='warning'>[src] does not have enough charge to be overloaded.</span>")
return
if(charging)
return
to_chat(user, "<span class='notice'>You begin to overload [src].</span>")
charging = TRUE
if(do_after(user, 2.5 SECONDS, target = src))