From 2378bf317543c2c7660bbe6a2feb0c2c45edbdfc Mon Sep 17 00:00:00 2001 From: Marisa the Magician Date: Thu, 8 Sep 2022 20:14:01 +0200 Subject: [PATCH] Oh look, it's another "actor stops existing after taking damage" fix. --- language.version | 4 ++-- zscript/dlc1/swwm_notashotgun_fx.zsc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/language.version b/language.version index 395b59a4d..348709be5 100644 --- a/language.version +++ b/language.version @@ -1,3 +1,3 @@ [default] -SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r416 \cu(Thu 8 Sep 20:13:19 CEST 2022)\c-"; -SWWM_SHORTVER="\cw1.3pre r416 \cu(2022-09-08 20:13:19)\c-"; +SWWM_MODVER="\cyDEMOLITIONIST \cw1.3pre r417 \cu(Thu 8 Sep 20:14:01 CEST 2022)\c-"; +SWWM_SHORTVER="\cw1.3pre r417 \cu(2022-09-08 20:14:01)\c-"; diff --git a/zscript/dlc1/swwm_notashotgun_fx.zsc b/zscript/dlc1/swwm_notashotgun_fx.zsc index ee88c8942..a139d2462 100644 --- a/zscript/dlc1/swwm_notashotgun_fx.zsc +++ b/zscript/dlc1/swwm_notashotgun_fx.zsc @@ -1028,7 +1028,7 @@ Class OnFire : Inventory int flg = DMG_THRUSTLESS; if ( Owner is 'Centaur' ) flg |= DMG_FOILINVUL; // you're on fire, that shield is worthless Owner.DamageMobj(self,instigator,clamp(int(amount*.15),1,50),'Fire',flg); - if ( Owner.bISMONSTER && !Random[FlameT](0,3) ) + if ( Owner && Owner.bISMONSTER && !Random[FlameT](0,3) ) Owner.Howl(); } if ( !Owner )