Add an attack that hits all enemies
NathanLovato opened this issue · 3 comments
On top of expanding skills themselves, this would help debug and go through encounters faster, e.g. for quests that require killing X monsters
Hmm, would you be okay with adding an additional variable to skills called something like attack_type?
You could specify something like Single, All, Cone Adjacent or any number of things like that.
Then we could modify BattlerAI.gd and everything that inherits from it to also accept attack_type as a parameter and go from there.
No, attacks receive an array of targets, and we should have multiple target selection work on its own, not add a hack that overrides the targets passed to the skill
This is so we can support e.g. using a skill on one or multiple targets, like healing, but also arbitrarily targeting your party if you want (attack one of your allies that got confused or turned against you).
This task requires some special code for the player as target selection relies on the select arrow, and right now it's a single sprite - it needs to change to show visually when you're selecting multiple targets. Internally everything works with an array of targets though, and every skill should work on the array of targets it received so any attack or skill can already work on any number of battlers.