Probably fixed Magnetic chess
[vchess.git] / public / javascripts / variants / Magnetic.js
index 4c286e1..7fecf78 100644 (file)
@@ -14,7 +14,7 @@ class MagneticRules extends ChessRules
                        if (newMove_s.length == 1)
                                moves.push(newMove_s[0]);
                        else //promotion
-                               moves = moves.concat(moves, newMove_s);
+                               moves = moves.concat(newMove_s);
                });
                return moves;
        }