fix capture count bug
This commit is contained in:
parent
bab288f82c
commit
d23eb24c84
1 changed files with 1 additions and 1 deletions
|
@ -233,7 +233,7 @@ function resolveCaptures(point) {
|
|||
point.checkCapture();
|
||||
if(point.capturing.filter(cap => cap).length ) {
|
||||
point.capturing.forEach(cap => {
|
||||
gameState.playerState[cap.stone > 0 ? 'bCaptures' : 'wCaptures']++;
|
||||
gameState.playerState[point.stone > 0 ? 'bCaptures' : 'wCaptures']++;
|
||||
cap.stone = 0;
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue