Some fixes. Screen variant computer play is still broken, seemingly
[vchess.git] / client / src / variants / Synochess.js
index 5291522..f8e9386 100644 (file)
@@ -527,7 +527,7 @@ export class SynochessRules extends ChessRules {
 
   evalPosition() {
     let evaluation = super.evalPosition();
-    if (this.turn == 'b')
+    if (this.turn == 'b' && !!this.reserve)
       // Add reserves:
       evaluation += this.reserve['b'][V.SOLDIER] * V.VALUES[V.SOLDIER];
     return evaluation;