+ pawnPostProcess(moves, color, oppCols) {
+ let res = super.pawnPostProcess(moves, color, oppCols);
+ if (res.length > 0 && res[0].vanish[0].p == 's') {
+ // Fix promotions of non-violent pawns (if any)
+ res.forEach(m => {
+ if (m.appear[0].p != 's')
+ m.appear[0].p = V.NV_PIECES[V.V_PIECES.indexOf(m.appear[0].p)];
+ });
+ }
+ return res;
+ }
+