リバーシで相手のターンでも置くことができるのを修正 (#6777)

This commit is contained in:
takonomura 2020-10-30 22:39:33 +09:00 committed by GitHub
parent e2e262c8ce
commit 0fab0c416d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -231,7 +231,7 @@ export default defineComponent({
set(pos) { set(pos) {
if (this.game.isEnded) return; if (this.game.isEnded) return;
if (!this.iAmPlayer) return; if (!this.iAmPlayer) return;
if (!this.isMyTurn) return; if (!this.isMyTurn()) return;
if (!this.o.canPut(this.myColor, pos)) return; if (!this.o.canPut(this.myColor, pos)) return;
this.o.put(this.myColor, pos); this.o.put(this.myColor, pos);