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:
Click Attack Mode First
Click aAll unit (cleric, asssassin, poison wisp, enchantress)
[New Behavior] Allow for clicking cleric on itself to initiate heal
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:
NEW: Tested on non-quick mode with incognito
NEW: aAll units will not attack self
NEW: aAll Units will show affected target on card by default or when blurred
NEW: aAll Units will not show self damage on the card when focused or blurred
NEW: Cleric will not show self hit notice when full HP
Regular units without aAll will not have their own tile highlighted by default
Cleric will not heal self when full HP
Cleric will not double heal self when missing HP
Cleric will heal only self if only self is damaged
Assassin, enchantress and wisp can self-target for attack surrounding targets
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:
aAll
unit (cleric, asssassin, poison wisp, enchantress)Approach: Add self to target tiles list in
getTargetTiles
, modify existing calls togetTargetUnits
to usegetAttackTiles
instead to ensure we are not targeting the unit itself.Cases Tested:
aAll
units will not attack selfaAll
Units will show affected target on card by default or when blurredaAll
Units will not show self damage on the card when focused or blurredDemo: https://www.loom.com/share/e8ba68d94dbb46f780b4c8c8be0a3a4b