always autoqueen with keyboard move, unless specified with a8=n
This commit is contained in:
parent
4ec83e197e
commit
a3d25550ba
|
@ -31,7 +31,7 @@ export function start(ctrl: RoundController, orig: cg.Key, dest: cg.Key, meta: c
|
|||
(dest[1] === '8' && d.player.color === 'white') ||
|
||||
(dest[1] === '1' && d.player.color === 'black'))) {
|
||||
if (prePromotionRole && meta && meta.premove) return sendPromotion(ctrl, orig, dest, prePromotionRole, meta);
|
||||
if (!meta.ctrlKey && !promoting && (d.pref.autoQueen === 3 || (d.pref.autoQueen === 2 && premovePiece))) {
|
||||
if (!meta.ctrlKey && !promoting && (d.pref.autoQueen === 3 || (d.pref.autoQueen === 2 && premovePiece) || ctrl.keyboardMove)) {
|
||||
if (premovePiece) setPrePromotion(ctrl, dest, 'queen');
|
||||
else sendPromotion(ctrl, orig, dest, 'queen', meta);
|
||||
return true;
|
||||
|
|
Loading…
Reference in a new issue