Revert cause it's using the wrong cooldown

This commit is contained in:
Joseph Ferano 2022-02-09 03:08:47 +07:00
parent 59d28be90a
commit 8dbb5e1145

View File

@ -36,7 +36,8 @@ let getShieldGif = function
let constructButtons (actionType: string) (player: PlayerData) (buttonId : string) (items: BattleItem array) isTrainer =
items
|> Array.map (fun item ->
match player.Actions |> Array.exists (fun i -> i.ActionId = item.Id) && not isTrainer with
// match player.Actions |> Array.exists (fun i -> i.ActionId = item.Id) && not isTrainer with
match false with
| true -> DiscordButtonComponent(Game.getClassButtonColor item.Class, $"{actionType}-{item.Id}", $"{item.Name} (on cooldown)", true)
| false -> DiscordButtonComponent(Game.getClassButtonColor item.Class, $"{actionType}-{item.Id}-{buttonId}", $"{item.Name}"))