Aimbot shoots burning and cloak flicker spies. (#1454)

Solves #1446 and #1448

Signed-off-by: Ashley <zanthed@riseup.net>
This commit is contained in:
Ashley 2021-05-08 19:05:07 -04:00 committed by GitHub
parent 5a7117624e
commit 6b370b8daa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -702,9 +702,9 @@ bool IsTargetStateGood(CachedEntity *entity)
}
else
{
if (ignore_cloak)
if (ignore_cloak && !(HasCondition<TFCond_OnFire>(entity)) && !(HasCondition<TFCond_CloakFlicker>(entity)))
return false;
}
}
}
}
// Vaccinator