X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fvariants%2FTeleport.js;h=cbf6a786adbc59c3d2e1a01c068dd66547777ec5;hp=82528c1868428c6e4a8c55257f8c1c2decf1bb4c;hb=7c05a5f2297bea540c700ebceb0cc8b03a7f6775;hpb=cdab566355412821c9187078ee0864ceb30545de diff --git a/client/src/variants/Teleport.js b/client/src/variants/Teleport.js index 82528c18..cbf6a786 100644 --- a/client/src/variants/Teleport.js +++ b/client/src/variants/Teleport.js @@ -3,7 +3,7 @@ import { randInt } from "@/utils/alea"; export class TeleportRules extends ChessRules { - hoverHighlight(x, y) { + hoverHighlight([x, y]) { // Testing move validity results in an infinite update loop. // TODO: find a way to test validity anyway. return (this.subTurn == 2 && this.board[x][y] == V.EMPTY);