Skip to content

Commit

Permalink
fix xenomites instantly dying
Browse files Browse the repository at this point in the history
  • Loading branch information
BenLubar committed Jul 7, 2024
1 parent 7419bcd commit c3630ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/game/server/swarm/asw_parasite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1279,7 +1279,7 @@ void CASW_Parasite::NPCThink()
else
s_fNextSpottedChatterTime = gpGlobals->curtime + 1.0f;
}
if ( m_bDefanged && m_fSuicideTime < gpGlobals->curtime && GetEnemy() == NULL )
if ( m_bDefanged && m_fSuicideTime != 0 && m_fSuicideTime < gpGlobals->curtime && GetEnemy() == NULL )
{
CTakeDamageInfo info( this, this, Vector( 0, 0, 0 ), GetAbsOrigin(), GetHealth() * 2, DMG_ACID );
TakeDamage( info );
Expand Down

0 comments on commit c3630ed

Please sign in to comment.