The restriction that the trampling piece should not be King is lifted.
That the piece has an O atom in its Betza string is enough to qualify.
if(gameInfo.variant == VariantKnightmate)
king += (int) WhiteUnicorn - (int) WhiteKing;
- if(piece != WhiteKing && piece != BlackKing && pieceDesc[piece] && killX >= 0 && strchr(pieceDesc[piece], 'O') // Betza castling-enabled
- && (piece < BlackPawn ? killed < BlackPawn : killed >= BlackPawn)) { // and captures own
+ if(pieceDesc[piece] && killX >= 0 && strchr(pieceDesc[piece], 'O') // Betza castling-enabled
+ && (piece < BlackPawn ? killed < BlackPawn : killed >= BlackPawn)) { // and tramples own
board[toY][toX] = piece; board[fromY][fromX] = EmptySquare;
board[toY][toX + (killX < fromX ? 1 : -1)] = killed;
board[EP_STATUS] = EP_NONE; // capture was fake!