Skip to content

Commit

Permalink
Fix coinflip x2 printouts
Browse files Browse the repository at this point in the history
  • Loading branch information
MSWS committed Mar 24, 2024
1 parent 57db608 commit d560d06
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion mod/Jailbreak.LastRequest/LastRequestManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public HookResult OnPlayerDeath(EventPlayerDeath @event, GameEventInfo info)
{
// Handle active LRs
var activeLr = ((ILastRequestManager)this).GetActiveLR(player);
if (activeLr != null)
if (activeLr != null && activeLr.state != LRState.Completed)
{
var isPrisoner = activeLr.prisoner.Slot == player.Slot;
EndLastRequest(activeLr, isPrisoner ? LRResult.GuardWin : LRResult.PrisonerWin);
Expand Down
1 change: 1 addition & 0 deletions mod/Jailbreak.LastRequest/LastRequests/Coinflip.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public override void Setup()

public override void Execute()
{
state = LRState.Active;
MenuManager.OpenChatMenu(guard, menu);

timeout = plugin.AddTimer(10, () =>
Expand Down

0 comments on commit d560d06

Please sign in to comment.