fix(client): check for currency before buying
1 files changed, 7 insertions(+), 0 deletions(-) M client/src/plugins/game/supply/mod.rs
M client/src/plugins/game/supply/mod.rs => client/src/plugins/game/supply/mod.rs +7 -0
@@ 102,6 102,13 @@ fn handle_clicked_supply_pile( commands.entity(entity).remove::<ClickedCard>(); if game_data.game_status.as_ref().unwrap() .players.get(&global.user.as_ref().unwrap().id) .unwrap().currency < card.card.cost { // not enough currency return; } gac_ev_w.send(GameActionCreateCallEvent { action: Action::new( &game_data.game.as_ref().unwrap().id,