Smol fix.

This commit is contained in:
Mari the Deer 2021-01-22 11:23:36 +01:00
commit b1f7cb3e86
2 changed files with 7 additions and 1 deletions

View file

@ -1,2 +1,2 @@
[default]
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r780 \cu(Fri 22 Jan 10:56:43 CET 2021)";
SWWM_MODVER="\chSWWM \czGZ\c- \cw0.9.11b-pre r781 \cu(Fri 22 Jan 11:23:36 CET 2021)";

View file

@ -889,6 +889,12 @@ Class CorrodeDebuff : Inventory
Super.DoEffect();
if ( (Amount <= 0) || !Owner )
{
if ( Owner && IsActorPlayingSound(CHAN_VOICE) )
{
// don't destroy yet, keep following owner until the sound wears off
SetOrigin(Owner.Vec3Offset(0,0,Owner.height/2),false);
return;
}
DepleteOrDestroy();
return;
}