fixes the attack path again (#29117)

This commit is contained in:
Toastical
2025-05-08 05:08:46 +03:00
committed by GitHub
parent e4e42af7f3
commit e621afbd1e
@@ -52,11 +52,11 @@
if(!our_cable || !our_cable.powernet || !our_cable.powernet.available_power)
return
var/area/to_deduct_from = get_area(our_cable)
living_to_shock.electrocute_act(shock_damage, source)
living_to_shock.electrocute_act(shock_damage, parent)
to_deduct_from.powernet.use_active_power(energy_cost)
playsound(get_turf(parent), 'sound/effects/eleczap.ogg', 30, TRUE)
else
living_to_shock.electrocute_act(shock_damage, source)
living_to_shock.electrocute_act(shock_damage, parent)
playsound(get_turf(parent), 'sound/effects/eleczap.ogg', 30, TRUE)
COOLDOWN_START(src, last_shock, delay_between_shocks)