Skip to content

Commit

Permalink
dont mark as rebel in lr
Browse files Browse the repository at this point in the history
  • Loading branch information
destoer committed Dec 6, 2023
1 parent e17fb0d commit d2b8d9f
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Jail.cs
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ HookResult OnWeaponFire(EventWeaponFire @event, GameEventInfo info)
}


static Warden warden = new Warden();
static LastRequest lr = new LastRequest();
static SpecialDay sd = new SpecialDay();
public static Warden warden = new Warden();
public static LastRequest lr = new LastRequest();
public static SpecialDay sd = new SpecialDay();
}
2 changes: 1 addition & 1 deletion src/LastRequest/LastRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ bool is_valid_t(CCSPlayerController? player)
return null;
}

bool in_lr(CCSPlayerController? player)
public bool in_lr(CCSPlayerController? player)
{
return find_lr(player) != null;
}
Expand Down
9 changes: 9 additions & 0 deletions src/Warden/JailPlayer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,15 @@ public void set_rebel(CCSPlayerController? player)
return;
}

// ignore if they are in lr
if(JailPlugin.global_ctx != null)
{
if(JailPlugin.lr.in_lr(player))
{
return;
}
}

// dont care if player is invalid
if(!player.is_valid() || player == null)
{
Expand Down

0 comments on commit d2b8d9f

Please sign in to comment.