monster_scientist: Fix a fuckup of me having shifted code around a couple of times which results in WORLD going insane.

This commit is contained in:
Marco Cawthorne 2022-07-14 18:17:11 -07:00
parent fbb2df4b6e
commit 04ac41346f
Signed by: eukara
GPG Key ID: CE2032F0A2882A22
1 changed files with 3 additions and 1 deletions

View File

@ -241,7 +241,9 @@ monster_scientist::Death(void)
StartleAllies();
if (style != MONSTER_DEAD) {
rules.ScientistKill((player)g_dmg_eAttacker, (entity)this);
if (g_dmg_eAttacker.flags & FL_CLIENT)
rules.ScientistKill((player)g_dmg_eAttacker, (entity)this);
Plugin_PlayerObituary(g_dmg_eAttacker, this, g_dmg_iWeapon, g_dmg_iHitBody, g_dmg_iDamage);
SetFrame(SCIA_DIE_SIMPLE + floor(random(0, 6)));
Sound_Speak(this, "monster_scientist.die");