Skip to content

Commit

Permalink
Patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Mentrillum committed Dec 28, 2022
1 parent df2a2ae commit 854607f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions addons/sourcemod/scripting/sf2/npc/npc_chaser.sp
Original file line number Diff line number Diff line change
Expand Up @@ -2180,8 +2180,7 @@ bool IsTargetValidForSlender(SF2_BasePlayer target, bool includeEliminated = fal

if (target.IsValid)
{
if (!target.IsInGame ||
!target.IsAlive ||
if (!target.IsAlive ||
target.IsInDeathCam ||
(!includeEliminated && target.IsEliminated) ||
target.IsInGhostMode ||
Expand Down Expand Up @@ -2222,7 +2221,7 @@ SF2_BasePlayer NPCChaserGetClosestPlayer(int slender)
for (int i = 1; i <= MaxClients; i++)
{
SF2_BasePlayer client = SF2_BasePlayer(i);
if (!client.IsValid || !client.IsInGame || client.IsInGhostMode || client.IsProxy || !client.IsAlive || client.IsEliminated)
if (!client.IsValid || client.IsInGhostMode || client.IsProxy || !client.IsAlive || client.IsEliminated)
{
continue;
}
Expand Down
2 changes: 1 addition & 1 deletion addons/sourcemod/scripting/sf2/traps.sp
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ static Action Timer_TrapThink(Handle timer, any entref)
for (int i = 1; i <= MaxClients; i++)
{
SF2_BasePlayer player = SF2_BasePlayer(i);
if (!player.IsInGame ||
if (!player.IsValid ||
!player.IsAlive ||
player.IsEliminated ||
player.IsInGhostMode ||
Expand Down

0 comments on commit 854607f

Please sign in to comment.