From 6efc69b1265b0c565dafbdaa1f8249d42440c890 Mon Sep 17 00:00:00 2001 From: GideonPotok Date: Thu, 7 Mar 2024 08:48:24 -0500 Subject: [PATCH] Made the change have less of a blast radius. --- ui/analyse/src/practice/practiceCtrl.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ui/analyse/src/practice/practiceCtrl.ts b/ui/analyse/src/practice/practiceCtrl.ts index 116e84969a817..5b540bad62210 100644 --- a/ui/analyse/src/practice/practiceCtrl.ts +++ b/ui/analyse/src/practice/practiceCtrl.ts @@ -136,7 +136,11 @@ export function make(root: AnalyseCtrl, playableDepth: () => number): PracticeCt } function isMyTurn(): boolean { - return root.turnColor() === root.playerColor(); + if (root.data.game.variant.key === 'racingKings'){ + return root.turnColor() === root.playerColor(); + } else { + return root.turnColor() === root.bottomColor(); + } } function checkCeval() {