diff --git a/src/abilities/Stomper.js b/src/abilities/Stomper.js index 7c13c1e3a..d69dcafc8 100644 --- a/src/abilities/Stomper.js +++ b/src/abilities/Stomper.js @@ -102,7 +102,7 @@ export default (G) => { const stomper = this.creature; const ability = this; - // Take the closest ennemy in each direction within 3hex + // Take the closest enemy in each direction within 3hex if (!this.isUpgraded()) { G.grid.queryDirection({ fnOnConfirm: function () { @@ -118,7 +118,7 @@ export default (G) => { sourceCreature: stomper, dashedHexesUnderCreature: true, }); - } // Once upgraded, can hit any ennemy within 3hex in any direction + } // Once upgraded, can hit any enemy within 3hex in any direction else { G.grid.queryDirection({ fnOnConfirm: function () { @@ -147,8 +147,6 @@ export default (G) => { dashedHexesUnderCreature: true, fillOnlyHoveredCreature: true, }); - G.h - } }, diff --git a/src/utility/hexgrid.ts b/src/utility/hexgrid.ts index cd31b19bf..4eff5fb76 100644 --- a/src/utility/hexgrid.ts +++ b/src/utility/hexgrid.ts @@ -1057,6 +1057,10 @@ export class HexGrid { if (hex.reachable) { + + if (o.fillOnlyHoveredCreature && !(hex instanceof Creature)) { + $j('canvas').css('cursor', 'not-allowed'); + } if (o.fillHexOnHover) { this.cleanHex(hex);