From 55a15dcb7df5091f46f7dd9c170b2aae5846c6c0 Mon Sep 17 00:00:00 2001
From: Benjamin Auder <benjamin.auder@somewhere>
Date: Tue, 16 Nov 2021 23:18:37 +0100
Subject: [PATCH] Fix typo

---
 base_rules.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/base_rules.js b/base_rules.js
index 038126e..715f4e0 100644
--- a/base_rules.js
+++ b/base_rules.js
@@ -760,7 +760,7 @@ export default class ChessRules {
   }
 
   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;
-- 
2.44.0