online multiplayer chess game (note server currently down)
Diffstat (limited to 'pieces/Knight.gd')
| -rw-r--r-- | pieces/Knight.gd | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pieces/Knight.gd b/pieces/Knight.gd index 2ba7277..477afec 100644 --- a/pieces/Knight.gd +++ b/pieces/Knight.gd @@ -16,9 +16,8 @@ func get_moves(): var final = [] for i in moves: if is_on_board(i): - if check_spots_check: - if !checkcheck(i): - continue + if check_spots_check and checkcheck(i): + continue final.append(i) return final |