monster_scientist: Fix the Pain() calling animations post-death

This commit is contained in:
Marco Cawthorne 2022-04-23 22:04:34 -07:00
parent bf4ec8bcc3
commit ccfd887e7c
Signed by: eukara
GPG key ID: C196CD8BA993248A

View file

@ -208,6 +208,9 @@ monster_scientist::TalkPanic(void)
void
monster_scientist::Pain(void)
{
if (style == MONSTER_DEAD)
return;
if (autocvar_sh_sciattack)
CBaseMonster::Pain();