Skip to content

Commit

Permalink
Pacru: Fix blChange highlighting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Perlkonig committed Feb 12, 2025
1 parent 2e0cbf7 commit 6d36615
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/games/pacru.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1156,7 +1156,7 @@ export class PacruGame extends GameBase {
const ctr = g.cell2ctr(to);
const blcells = g.ctr2cells(ctr);
for (const cell of blcells) {
if (sideEffects.has("blChange") && (!this.board.has(cell) || !toHasTile)) {
if (sideEffects.has("blChange") && (!this.board.has(cell) || (cell === to && !toHasTile))) {
this.highlights.push(cell);
} else if (sideEffects.has("blTransform")) {
const contents = this.board.get(cell)!;
Expand Down

0 comments on commit 6d36615

Please sign in to comment.