online multiplayer chess game (note server currently down)
Diffstat (limited to 'pieces/King.gd')
| -rw-r--r-- | pieces/King.gd | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pieces/King.gd b/pieces/King.gd index b50bd2e..a5b44d2 100644 --- a/pieces/King.gd +++ b/pieces/King.gd @@ -7,7 +7,7 @@ func get_moves(): for i in all_dirs(): var spot = pos_around(i) if is_on_board(spot): - if check_spots_check and checkcheck(spot): + if check_spots_check and Globals.in_check and checkcheck(spot): continue moves.append(spot) return moves |