Merge pull request #824 from nullworks/lightcat

Fix Heal Only Friends option not working properly
This commit is contained in:
LightCat 2019-09-29 12:43:34 +02:00 committed by GitHub
commit a8ef7178bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -489,7 +489,7 @@ bool CanHeal(int idx)
return false;
if (IsPlayerInvisible(ent))
return false;
if (friendsonly && player_tools::shouldTarget(ent))
if (friendsonly && !playerlist::IsFriend(ent))
return false;
return true;
}