Fixes tesla_zap proc (#19351)

* move these

* gibs
This commit is contained in:
Cameron Lennox
2026-03-28 14:21:08 -04:00
committed by GitHub
parent d5da7ce895
commit 8590089158
7 changed files with 53 additions and 53 deletions
+1 -1
View File
@@ -77,7 +77,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 = 0)
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.