online multiplayer chess game (note server currently down)
Diffstat (limited to 'pieces/Pawn.gd')
-rw-r--r--pieces/Pawn.gd2
1 files changed, 1 insertions, 1 deletions
diff --git a/pieces/Pawn.gd b/pieces/Pawn.gd
index 7760913..5c232ae 100644
--- a/pieces/Pawn.gd
+++ b/pieces/Pawn.gd
@@ -13,7 +13,7 @@ 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 and checkcheck(point):
+ if check_spots_check and Globals.in_check and checkcheck(point):
continue
if is_on_board(point):
moves.append(point)