projects
/
xogo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8a9f61c
)
Fix typo
author
Benjamin Auder
<benjamin.auder@somewhere>
Tue, 16 Nov 2021 22:18:37 +0000
(23:18 +0100)
committer
Benjamin Auder
<benjamin.auder@somewhere>
Tue, 16 Nov 2021 22:18:37 +0000
(23:18 +0100)
base_rules.js
patch
|
blob
|
blame
|
history
diff --git
a/base_rules.js
b/base_rules.js
index
038126e
..
715f4e0
100644
(file)
--- 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.CannibalKing
s
[piece])
piece = "k"; //capturing cannibal king: back to king form
const oldCount = this.reserve[color][piece];
this.reserve[color][piece] = count;