online multiplayer chess game (note server currently down)
Diffstat (limited to 'pieces/N.gd')
| -rw-r--r-- | pieces/N.gd | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/pieces/N.gd b/pieces/N.gd index dfb05c8..16dc101 100644 --- a/pieces/N.gd +++ b/pieces/N.gd @@ -16,9 +16,7 @@ func get_moves(no_enemys := false, check_spots_check := true) -> PoolVector2Arra var final: PoolVector2Array = [] for i in moves: if is_on_board(i): - if no_enemys and at_pos(i): - continue - if check_spots_check and checkcheck(i): + if no_enemys and at_pos(i) or (check_spots_check and checkcheck(i)): continue final.append(i) return final |