From 33453d809c8b412d26624a82af38488bb94a8a8f Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Thu, 24 Feb 2022 20:37:58 +0700 Subject: [PATCH] Check if it's instigating --- Bot/Embeds.fs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Bot/Embeds.fs b/Bot/Embeds.fs index b01ccfa..118fa0b 100644 --- a/Bot/Embeds.fs +++ b/Bot/Embeds.fs @@ -41,7 +41,7 @@ let constructButtons (actionId: string) (buttonInfo : string) (player: PlayerDat player.Events |> Array.tryFind (fun i -> match i.Type with - | Hacking h -> h.HackId = item.Id + | Hacking h -> h.HackId = item.Id && h.IsInstigator | Shielding id -> id = item.Id | _ -> false) let btnColor = Game.getClassButtonColor item.Class