feature/spell-constraints #32

Merged
PeaAshMeter merged 11 commits from feature/spell-constraints into main 2026-03-18 05:11:55 +03:00

11 Commits

Author SHA1 Message Date
2e96ec821d Add cooldown handling for spells and display in UI
- Implement cooldown tracking in SpellcasterBehavior
- Decrease cooldowns at end of each round in turn order
- Prevent casting spells on cooldown in spell.cast
- Show cooldown overlay and block click on skill buttons
- Adjust font sizes for better UI consistency
2026-03-18 05:09:35 +03:00
ec816eb666 Refactor spell cast and task returns for optional tasks 2026-03-18 04:05:04 +03:00
d84fc4a7c2 Add path preview and refactor spells with new Spell API
- Add path preview support to Spell with update and draw methods
- Refactor spell:cast to always return a Task
- Simplify spell.new constructor and apply distance constraint uniformly
- Replace walk spell with new Spell-based implementation supporting path
  preview
- Remove debug print from target_test.lua
2026-03-18 03:53:27 +03:00
ecec540251 Improve target validation logic in spell casting function 2026-03-18 02:03:30 +03:00
a6578ec8dd Refactor target distance check using query intersection
Replace manual distance check with combined targetQuery and
distance query intersection for cleaner spell targeting logic

Fix query combinators to correctly reference self in closures
2026-03-18 02:01:59 +03:00
ef5ff5f847 tweak light effects in spells 2026-03-18 01:47:09 +03:00
0d2ed101d6 Refactor light animation in regenerateMana spell using easing 2026-03-18 00:56:19 +03:00
4431934e6b Refactor spell target selection to use composable queries
Introduce SpellTargetQuery abstraction for flexible target filtering.
Replace fixed target types with query-based system supporting union,
intersection, and exclusion of target conditions. Update spells
accordingly.
2026-03-17 23:09:36 +03:00
e0b08b07ec Remove residentsleeper behavior from light effect in regenerateMana
spell
2026-03-17 20:39:30 +03:00
2e6155aea4 Add target validation and refactor spells with new cast logic 2026-02-13 01:28:36 +03:00
95f2230302 Add simple spell framework and refactor dev_attack spell to use it 2026-02-13 00:43:54 +03:00