pongstylin / tactics

A tactical turn-based board game
The Unlicense
77 stars 23 forks source link

aAll units self-click, cleric heal #130

Open mrboli opened 9 months ago

mrboli commented 9 months ago

Main objective: Add in double click on cleric, assassin, poison wisp and enchantress to cast attack / heal. Impact: Time saving for the user, feature in original game.

Steps for user:

Approach: Add self to target tiles list in getTargetTiles, modify existing calls to getTargetUnits to use getAttackTiles instead to ensure we are not targeting the unit itself.

Cases Tested:

Demo: https://www.loom.com/share/e8ba68d94dbb46f780b4c8c8be0a3a4b