Skip to content

Commit

Permalink
Prevent revealing cloaked spies with Blind
Browse files Browse the repository at this point in the history
  • Loading branch information
satanskitty authored Dec 27, 2023
1 parent 264747e commit fc8b0d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripting/rtd/perks/blind.sp
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void Blind_OnPlayerAttacked(const int client, const int iVictim, const in

bool Blind_IsValidTarget(const int client, const int iTarget, const int iTargetTeam)
{
if (iTarget == client || !IsClientInGame(iTarget) || !IsPlayerAlive(iTarget))
if (iTarget == client || !IsClientInGame(iTarget) || !IsPlayerAlive(iTarget) || TF2_IsPlayerInCondition(iTarget, TFCond_Cloaked))
return false;

if (GetClientTeam(iTarget) != iTargetTeam)
Expand Down

0 comments on commit fc8b0d5

Please sign in to comment.