Attacks that can hit multiple targets (Ex: Ribbon dash) can be performed even if they have no targets.
By next release, there will be skills that target spaces, but not units. However, any skill that is an attack should not be performable unless it will hit at least 1 unit.
One solution is to add 'tags' method to each skill's class, and one of the tags is 'attack'.
If the command has that tag, it can't be performed without target(s).
[ ] Attacks cannot be performed unless they have target(s)
Attacks that can hit multiple targets (Ex: Ribbon dash) can be performed even if they have no targets. By next release, there will be skills that target spaces, but not units. However, any skill that is an attack should not be performable unless it will hit at least 1 unit.
One solution is to add 'tags' method to each skill's class, and one of the tags is 'attack'. If the command has that tag, it can't be performed without target(s).