fix capture count bug

This commit is contained in:
Sorrel Bri 2019-08-05 11:41:22 -07:00
parent bab288f82c
commit d23eb24c84

View file

@ -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;
})
}