From 902d96d8774d81cbe2fceb623c9f959733c70d6c Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Thu, 24 Feb 2022 21:04:42 +0700 Subject: [PATCH] Thief too --- Bot/Thief.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bot/Thief.fs b/Bot/Thief.fs index c712e23..077fbe5 100644 --- a/Bot/Thief.fs +++ b/Bot/Thief.fs @@ -84,7 +84,7 @@ let checkThiefCooldown attacker = attacker |> Player.removeExpiredActions |> fun p -> p.Events - |> Array.tryFind (fun pe -> match pe.Type with Stealing _ -> true | _ -> false) + |> Array.tryFind (fun pe -> match pe.Type with Stealing(instigator, _) -> instigator | _ -> false) |> function | Some act -> let cooldown = ThiefCooldown - (DateTime.UtcNow - act.Timestamp)