Skip to content

fix: cursor progress state when hovering active unit with no ability selected (#2246)#2928

Open
sungdark wants to merge 1 commit into
FreezingMoon:masterfrom
sungdark:fix/cursor-state-showcase-active-unit-2246
Open

fix: cursor progress state when hovering active unit with no ability selected (#2246)#2928
sungdark wants to merge 1 commit into
FreezingMoon:masterfrom
sungdark:fix/cursor-state-showcase-active-unit-2246

Conversation

@sungdark

Copy link
Copy Markdown

Bounty Issue #2246

Title: cursor state to showcase active unit better [bounty: 6 XTR]

Changes

When hovering the active unit with no ability selected, the cursor now shows the progress type pointer instead of the wait cursor.

Before: Cursor was always wait when hovering active creature with noActionPossible
After: Cursor shows progress when no ability is selected (even if unit might still be targetable); wait is only shown when an ability is selected but no action is possible

Implementation

In src/utility/hexgrid.ts, added a check for game.UI.selectedAbility === -1 before the existing noActionPossible check in the onCreatureHover callback.

收款地址: eB51DWp1uECrLZRLsE2cnyZUzfRWvzUzaJzkatTpQV9

@vercel

vercel Bot commented Mar 27, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the FreezingMoon Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant