diff --git a/rust/cli_player/src/ui_screens/game_screen.rs b/rust/cli_player/src/ui_screens/game_screen.rs index dfe87b0..e316ead 100644 --- a/rust/cli_player/src/ui_screens/game_screen.rs +++ b/rust/cli_player/src/ui_screens/game_screen.rs @@ -214,6 +214,16 @@ impl GameScreen { coordinates_mapper.get(&Coordinates::new(mouse.column, mouse.row)) { self.curr_shoot_position = *c; + + if self.can_fire() + && self.game.can_fire_at_location(self.curr_shoot_position) + { + self.client + .send_message(&ClientMessage::Fire { + location: self.curr_shoot_position, + }) + .await?; + } } } }