[MIRROR] Fixes tesla_zap proc (#12609)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2026-03-28 14:51:19 -04:00
committed by GitHub
co-authored by Cameron Lennox
parent 0aae5e4775
commit 02bd5929ee
7 changed files with 53 additions and 53 deletions
+1 -1
View File
@@ -73,7 +73,7 @@ ADMIN_VERB(admin_lightning_strike, R_FUN, "Lightning Strike", "Causes lightning
coil.tesla_act(LIGHTNING_POWER, TRUE, current_jumps = 1)
else // Striking the turf directly.
tesla_zap(T, zap_range = LIGHTNING_ZAP_RANGE, power = LIGHTNING_POWER, explosive = FALSE, stun_mobs = TRUE, current_jumps = 1)
tesla_zap(T, zap_range = LIGHTNING_ZAP_RANGE, power = LIGHTNING_POWER, explosive = FALSE, stun_mobs = TRUE, current_jumps = MAXIMUM_TESLA_JUMPS - 1) //This ensures it can only jump to the closest thing and that's it. No more jumps after that.
// Some extra effects.
// Some apply to those within zap range, others if they were a bit farther away.