This commit is contained in:
Thomas Kain 2025-04-04 00:44:36 -07:00 committed by GitHub
commit 2eebf46562
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10045,8 +10045,9 @@ void CTFPlayer::AddConnectedPlayers( CUtlVector<CTFPlayer*> &vecPlayers, CTFPlay
for ( int i = 0 ; i < pPlayerToConsider->m_Shared.GetNumHealers() ; i++ )
{
// Make sure the Medic is healing us specifically - don't count AoE healing
CTFPlayer *pMedic = ToTFPlayer( pPlayerToConsider->m_Shared.GetHealerByIndex( i ) );
if ( pMedic )
if ( pMedic && pMedic->MedicGetHealTarget() == pPlayerToConsider )
{
AddConnectedPlayers( vecPlayers, pMedic );
}