X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FAntimatter.js;h=6d3d36d472915d279f5bf71d388be18d9d225414;hp=f8f4c73e12d19041120a14c76dd4996a6757de54;hb=7e8a7ea1cb66adb4a987badfb0a3c2f99a21bd0a;hpb=31c535953c843b28434a7fcdf7b4da0b376774ab diff --git a/client/src/variants/Antimatter.js b/client/src/variants/Antimatter.js index f8f4c73e..6d3d36d4 100644 --- a/client/src/variants/Antimatter.js +++ b/client/src/variants/Antimatter.js @@ -1,9 +1,9 @@ import { ChessRules } from "@/base_rules"; export class AntimatterRules extends ChessRules { + getPotentialMovesFrom([x, y]) { let moves = super.getPotentialMovesFrom([x, y]); - // Handle "matter collisions" moves.forEach(m => { if ( @@ -14,7 +14,7 @@ export class AntimatterRules extends ChessRules { m.appear.pop(); } }); - return moves; } + };