From: Benjamin Auder Date: Tue, 16 Nov 2021 22:18:37 +0000 (+0100) Subject: Fix typo X-Git-Url: https://git.auder.net/js/doc/pieces/img/current/%7B%7B?a=commitdiff_plain;h=55a15dcb7df5091f46f7dd9c170b2aae5846c6c0;p=xogo.git Fix typo --- 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;