online multiplayer chess game (note server currently down)
Diffstat (limited to 'pieces/Bishop.gd')
-rw-r--r--pieces/Bishop.gd5
1 files changed, 3 insertions, 2 deletions
diff --git a/pieces/Bishop.gd b/pieces/Bishop.gd
index ad2a3c8..18029fb 100644
--- a/pieces/Bishop.gd
+++ b/pieces/Bishop.gd
@@ -2,5 +2,6 @@ extends Piece
class_name Bishop, "res://assets/pieces/california/wB.png"
-func get_moves(no_enemys = false, check_spots_check = true) -> Array:
- return traverse(all_dirs().slice(4, 8), no_enemys, check_spots_check)
+func get_moves(no_enemys := false, check_spots_check := true) -> PoolVector2Array:
+ var dirs = PoolVector2Array(Array(all_dirs()).slice(4, 8))
+ return traverse(dirs, no_enemys, check_spots_check)