Don't allow selecting invalid targets when attacking #457

Open
opened 2026-01-18 19:31:27 +00:00 by LunarTides · 0 comments
LunarTides commented 2026-01-18 19:31:27 +00:00 (Migrated from github.com)

For example, if you select a minion with Rush as an attacker, target will allow you to select the hero. game.attack will give an error message if you do, so it's not that big of a deal.

Still, it shouldn't do this for the sake of UX. Separate the logic for determining valid attackers and targets from game.attack into Card and Player.

For example, if you select a minion with `Rush` as an attacker, `target` will allow you to select the hero. `game.attack` will give an error message if you do, so it's not that big of a deal. Still, it shouldn't do this for the sake of UX. Separate the logic for determining valid attackers and targets from `game.attack` into `Card` and `Player`.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
LunarTides/Hearthstone.js#457
No description provided.