Fix typo
authorBenjamin Auder <benjamin.auder@somewhere>
Tue, 16 Nov 2021 22:18:37 +0000 (23:18 +0100)
committerBenjamin Auder <benjamin.auder@somewhere>
Tue, 16 Nov 2021 22:18:37 +0000 (23:18 +0100)
base_rules.js

index 038126e..715f4e0 100644 (file)
@@ -760,7 +760,7 @@ export default class ChessRules {
   }
 
   updateReserve(color, piece, count) {
   }
 
   updateReserve(color, piece, count) {
-    if (this.options["cannibal"] && C.CannibalKing[piece])
+    if (this.options["cannibal"] && C.CannibalKings[piece])
       piece = "k"; //capturing cannibal king: back to king form
     const oldCount = this.reserve[color][piece];
     this.reserve[color][piece] = count;
       piece = "k"; //capturing cannibal king: back to king form
     const oldCount = this.reserve[color][piece];
     this.reserve[color][piece] = count;