Thief too
This commit is contained in:
parent
3059255069
commit
902d96d877
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user