react-chessboard-ui 2.0.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -645,6 +645,7 @@ JSChessEngine.checkPossibleCastling = function (state, kingPos, castlingPath, re
645
645
  });
646
646
  if (castlinPathWithFigures.length > 0) return false;
647
647
  var isPossibleCastling = true;
648
+ if (castlingPathWithoutRook.length > 2) castlingPathWithoutRook.pop();
648
649
  for (var i = 0; i < allAttackedPositionsByEnemys.length; i++) {
649
650
  var attackedPos = allAttackedPositionsByEnemys[i];
650
651
  for (var j = 0; j < castlingPathWithoutRook.length; j++) {