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