Skip to content

Commit

Permalink
Fixed cursor on empty hex
Browse files Browse the repository at this point in the history
  • Loading branch information
xTammaro committed Oct 16, 2023
1 parent ac80f16 commit 84eb2ec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/utility/hexgrid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1058,9 +1058,12 @@ export class HexGrid {

if (hex.reachable) {

if (o.fillOnlyHoveredCreature && !(hex instanceof Creature)) {
if (o.fillOnlyHoveredCreature && !(hex.creature instanceof Creature)) {
$j('canvas').css('cursor', 'not-allowed');
}
//else if (o.fillOnlyHoveredCreature && (hex.creature instanceof Creature)) {
// $j('canvas').css('cursor', 'pointer');
// }

if (o.fillHexOnHover) {
this.cleanHex(hex);
Expand Down

0 comments on commit 84eb2ec

Please sign in to comment.