Check if it's instigating

This commit is contained in:
Joseph Ferano 2022-02-24 20:37:58 +07:00
parent 239de0ac73
commit 33453d809c

View File

@ -41,7 +41,7 @@ let constructButtons (actionId: string) (buttonInfo : string) (player: PlayerDat
player.Events player.Events
|> Array.tryFind (fun i -> |> Array.tryFind (fun i ->
match i.Type with match i.Type with
| Hacking h -> h.HackId = item.Id | Hacking h -> h.HackId = item.Id && h.IsInstigator
| Shielding id -> id = item.Id | Shielding id -> id = item.Id
| _ -> false) | _ -> false)
let btnColor = Game.getClassButtonColor item.Class let btnColor = Game.getClassButtonColor item.Class