This one too

This commit is contained in:
Joseph Ferano 2022-02-24 20:45:03 +07:00
parent 33453d809c
commit c8e4a8ea01

View File

@ -33,7 +33,7 @@ let checkWeaponHasCooldown (weapon : Item) attacker =
attacker.Events attacker.Events
|> Array.tryFind (fun a -> |> Array.tryFind (fun a ->
match a.Type with match a.Type with
| Hacking h -> h.HackId = weapon.Id | Hacking h -> h.HackId = weapon.Id && h.IsInstigator
| Shielding id -> id = weapon.Id | Shielding id -> id = weapon.Id
| _ -> false) | _ -> false)
|> function |> function