Fix central command being made of fire (lightning strike fix) (#19350)

* fix

* Update lightning_strike.dm
This commit is contained in:
Will
2026-03-28 07:57:46 -04:00
committed by GitHub
parent 2058f59695
commit 910f9df97c
+5 -1
View File
@@ -62,6 +62,10 @@ ADMIN_VERB(admin_lightning_strike, R_FUN, "Lightning Strike", "Causes lightning
if(M.check_sound_preference(/datum/preference/toggle/weather_sounds))
M.playsound_local(get_turf(M), soundin = sound, vol = 70, vary = FALSE, is_global = TRUE)
// Prevent lightning on central command level from being simulated
if(T.z in using_map.admin_levels)
return
if(cosmetic) // Everything beyond here involves potentially damaging things. If we don't want to do that, stop now.
return
@@ -73,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 = 1)
tesla_zap(T, zap_range = LIGHTNING_ZAP_RANGE, power = LIGHTNING_POWER, explosive = FALSE, stun_mobs = TRUE, current_jumps = 0)
// Some extra effects.
// Some apply to those within zap range, others if they were a bit farther away.