X-Git-Url: https://git.auder.net/?a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FAntimatter.js;h=6d3d36d472915d279f5bf71d388be18d9d225414;hb=HEAD;hp=f8f4c73e12d19041120a14c76dd4996a6757de54;hpb=32f6285ee325a14286562a53baefc647201df2af;p=vchess.git 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; } + };