This commit is contained in:
gurfan
2022-01-03 07:17:40 -06:00
committed by GitHub
parent bf0f3a82b6
commit 1cd91c17d8

View File

@@ -100,7 +100,7 @@
connected_button.name = name
charge_counter = charge_max
user.overlays -= chargeoverlay
if((zapzap != multicast) && (zapzap != 0)) //partial cast
if((zapzap != multicast) && (zapzap > 0)) //partial cast
take_charge(holder, 0)
zapzap = 0
return 1
@@ -111,7 +111,7 @@
if (user.is_pacified(VIOLENCE_DEFAULT,L))
return
zapzap--
if(zapzap)
if(zapzap > 0)
to_chat(user, "<span class='info'>You can throw lightning [zapzap] more time\s</span>")
. = 1