mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 11:05:03 +01:00
fixes the attack path again (#29117)
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user