diff --git a/game/src/game/mod.rs b/game/src/game/mod.rs index 661628a..66e1f13 100644 --- a/game/src/game/mod.rs +++ b/game/src/game/mod.rs @@ -94,7 +94,7 @@ impl Game { // Check if piece is promoted. let hex = Hex::from_tile(play.from); - let offset = (piece.player as i8 * 2) - 1; + let offset = -(piece.player as i8 * 2) + 1; if !piece.promoted && !Hex::is_valid(hex.x() as i8, hex.y() as i8 + offset) { if let Some(piece) = &mut self.board.pieces[pid as usize] { piece.promoted = true;