Fix CanHeal() for already healing targets
This commit is contained in:
parent
b945425f1a
commit
b6bb8b2506
@ -472,6 +472,10 @@ void UpdateData()
|
|||||||
|
|
||||||
bool CanHeal(int idx)
|
bool CanHeal(int idx)
|
||||||
{
|
{
|
||||||
|
// Already healing, no need to check
|
||||||
|
if (idx == HandleToIDX(CE_INT(LOCAL_W, netvar.m_hHealingTarget)))
|
||||||
|
return true;
|
||||||
|
|
||||||
CachedEntity *ent = ENTITY(idx);
|
CachedEntity *ent = ENTITY(idx);
|
||||||
if (!ent)
|
if (!ent)
|
||||||
return false;
|
return false;
|
||||||
|
Reference in New Issue
Block a user