From: Benjamin Auder <benjamin.auder@somewhere>
Date: Thu, 23 Apr 2020 11:53:15 +0000 (+0200)
Subject: Fix
X-Git-Url: https://git.auder.net/game/scripts/%7B%7B%20asset('mixstore/css/user/DESCRIPTION?a=commitdiff_plain;h=b1fea144e72b3bce1a2d2c630618805eb45424b4;p=vchess.git

Fix
---

diff --git a/client/src/variants/Ball.js b/client/src/variants/Ball.js
index 03a9b483..c9bdb339 100644
--- a/client/src/variants/Ball.js
+++ b/client/src/variants/Ball.js
@@ -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;