online multiplayer chess game (note server currently down)
Diffstat (limited to 'pieces/Pawn.gd')
| -rw-r--r-- | pieces/Pawn.gd | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pieces/Pawn.gd b/pieces/Pawn.gd index 55892bc..7760913 100644 --- a/pieces/Pawn.gd +++ b/pieces/Pawn.gd @@ -13,9 +13,8 @@ func get_moves(): if at_pos(point) == null: if i == 1 and has_moved or at_pos(pos_around(points[0] * whiteint)) != null: continue - if check_spots_check: - if !checkcheck(point): - continue + if check_spots_check and checkcheck(point): + continue if is_on_board(point): moves.append(point) return moves |