From a0c77fab039c80776cd68206249512b6dcb9c058 Mon Sep 17 00:00:00 2001 From: BenCat07 Date: Sun, 29 Sep 2019 12:13:36 +0200 Subject: [PATCH] Fix Heal Only Friends option not working properly --- src/hacks/AutoHeal.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hacks/AutoHeal.cpp b/src/hacks/AutoHeal.cpp index 91da95e7..1a2a1349 100644 --- a/src/hacks/AutoHeal.cpp +++ b/src/hacks/AutoHeal.cpp @@ -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; }