- let res = super.getCheckSquares(color);
- if (!this.isAttacked(this.antikingPos[color], V.GetOppCol(color)))
+ let res = [];
+ const oppCol = V.GetOppCol(color);
+ if (this.isAttacked(this.kingPos[color], oppCol))
+ res.push(JSON.parse(JSON.stringify(this.kingPos[color])));
+ if (!this.isAttacked(this.antikingPos[color], oppCol))