From e621afbd1eeea7ecbb4e4188ec1f9089f5576a40 Mon Sep 17 00:00:00 2001 From: Toastical <20125180+Toastical@users.noreply.github.com> Date: Thu, 8 May 2025 05:08:46 +0300 Subject: [PATCH] fixes the attack path again (#29117) --- .../gamemodes/miniantags/pulsedemon/cross_shock_component.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/game/gamemodes/miniantags/pulsedemon/cross_shock_component.dm b/code/game/gamemodes/miniantags/pulsedemon/cross_shock_component.dm index cf7da6be862..135bbe2f0ef 100644 --- a/code/game/gamemodes/miniantags/pulsedemon/cross_shock_component.dm +++ b/code/game/gamemodes/miniantags/pulsedemon/cross_shock_component.dm @@ -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)