Fix
authorBenjamin Auder <benjamin.auder@somewhere>
Thu, 23 Apr 2020 11:53:15 +0000 (13:53 +0200)
committerBenjamin Auder <benjamin.auder@somewhere>
Thu, 23 Apr 2020 11:53:15 +0000 (13:53 +0200)
client/src/variants/Ball.js

index 03a9b48..c9bdb33 100644 (file)
@@ -362,6 +362,7 @@ export class BallRules extends ChessRules {
       if (
         m.vanish.length == 2 &&
         m.vanish[1].p != 'a' &&
+        m.vanish[0].c != m.vanish[1].c &&
         Object.keys(V.HAS_BALL_DECODE).includes(m.appear[0].p)
       ) {
         const color = this.turn;