add moveCancelable to Ability
This commit is contained in:
+1
-2
@@ -120,9 +120,8 @@ export default class Entity {
|
||||
this.#moving = false
|
||||
}
|
||||
|
||||
// TODO: cancelable and uncancelable abilities
|
||||
moveAction(cursor, attack = false) {
|
||||
if (this.casting != null && (!this.#attacking || this.casting.ability.id != this.abilities[0].id)) {
|
||||
if (this.casting != null && this.casting.ability.moveCancelable) {
|
||||
this.casting = null
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user