projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixes
[vchess.git]
/
client
/
src
/
variants
/
Makruk.js
diff --git
a/client/src/variants/Makruk.js
b/client/src/variants/Makruk.js
index
2da534f
..
9f9c37b
100644
(file)
--- a/
client/src/variants/Makruk.js
+++ b/
client/src/variants/Makruk.js
@@
-104,7
+104,7
@@
export class MakrukRules extends ChessRules {
}
isAttackedByBishop(sq, color) {
- const forward = (
this.turn
== 'w' ? 1 : -1);
+ const forward = (
color
== 'w' ? 1 : -1);
return this.isAttackedBySlideNJump(
sq,
color,