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
1 changed files with 3 additions and 0 deletions

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();