Thief too
This commit is contained in:
parent
3059255069
commit
902d96d877
@ -84,7 +84,7 @@ let checkThiefCooldown attacker =
|
|||||||
attacker
|
attacker
|
||||||
|> Player.removeExpiredActions
|
|> Player.removeExpiredActions
|
||||||
|> fun p -> p.Events
|
|> 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
|
|> function
|
||||||
| Some act ->
|
| Some act ->
|
||||||
let cooldown = ThiefCooldown - (DateTime.UtcNow - act.Timestamp)
|
let cooldown = ThiefCooldown - (DateTime.UtcNow - act.Timestamp)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user