Fix server logic error.

This commit is contained in:
yukirij 2025-02-06 16:14:01 -08:00
parent ea15043357
commit 1d3464c5d0

View File

@ -643,7 +643,7 @@ impl Game {
for target in &self.board.pieces { for target in &self.board.pieces {
if let Some(target) = target { if let Some(target) = target {
let tile = self.board.tiles[target.tile as usize]; let tile = self.board.tiles[target.tile as usize];
if !tile.threat[!target.player as usize] && target.blocking == 0 { if !tile.threat[(target.player == 0) as usize] && target.blocking == 0 {
plays.push(PlayInfo { plays.push(PlayInfo {
valid: true, valid: true,
threat: false, threat: false,