Fixes runtime when MODsuit gets EMPed (#63706)

Co-authored-by: Fikou <23585223+Fikou@users.noreply.github.com>
This commit is contained in:
SmArtKar
2021-12-31 15:57:38 -08:00
committed by GitHub
co-authored by Fikou
parent f4383c15e4
commit c7ac1eee59
+1 -1
View File
@@ -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))