Kiva-Entertainment / yohk

SRPG game made with Blender, with scripts in Python
Other
9 stars 0 forks source link

Attacks can be performed without targets #4

Closed KaiGeffen closed 10 years ago

KaiGeffen commented 10 years ago

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).