mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 12:41:09 +01:00
Fixes runtime when MODsuit gets EMPed (#63706)
Co-authored-by: Fikou <23585223+Fikou@users.noreply.github.com>
This commit is contained in:
@@ -396,7 +396,7 @@
|
||||
to_chat(wearer, span_notice("[severity > 1 ? "Light" : "Strong"] electromagnetic pulse detected!"))
|
||||
if(. & EMP_PROTECT_CONTENTS)
|
||||
return
|
||||
selected_module.on_deactivation()
|
||||
selected_module?.on_deactivation()
|
||||
wearer.apply_damage(10 / severity, BURN, spread_damage=TRUE)
|
||||
to_chat(wearer, span_danger("You feel [src] heat up from the EMP, burning you slightly."))
|
||||
if(wearer.stat < UNCONSCIOUS && prob(10))
|
||||
|
||||
Reference in New Issue
Block a user