Skip to content

Commit

Permalink
Fixed multiple cancel cursor bug
Browse files Browse the repository at this point in the history
  • Loading branch information
xTammaro committed Oct 16, 2023
1 parent 56c5e01 commit 6fd1a36
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/utility/hexgrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -536,13 +536,12 @@ export class HexGrid {
item.displayVisualState('creature selected player' + item.creature.team);
} else if (item.creature instanceof Creature) {
item.displayVisualState('adj');
} else if (this.hoveredCreature == null) {
this.cleanHex(item);
item.displayVisualState('dashed');
item.overlayVisualState('hover');
}
} //else if (this.hoveredCreature == null) {
//this.cleanHex(item);
//item.displayVisualState('dashed');
//item.overlayVisualState('hover');
//}
else {
this.cleanHex(item);
item.displayVisualState('dashed');
}

Expand Down Expand Up @@ -1059,6 +1058,7 @@ export class HexGrid {
if (hex.reachable) {
if (o.fillOnlyHoveredCreature && !(hex.creature instanceof Creature)) {
$j('canvas').css('cursor', 'not-allowed');
hex.overlayVisualState('hover');
}


Expand Down

0 comments on commit 6fd1a36

Please sign in to comment.