|
|
@@ -161,7 +161,7 @@ export default class Combat extends Vue { |
|
|
this.scrollParentTo(creature) |
|
|
this.scrollParentTo(creature) |
|
|
} |
|
|
} |
|
|
const target: HTMLElement|null = this.$el.querySelector("[data-active]") |
|
|
const target: HTMLElement|null = this.$el.querySelector("[data-active]") |
|
|
if (creature !== null) { |
|
|
|
|
|
|
|
|
if (target !== null) { |
|
|
this.scrollParentTo(target) |
|
|
this.scrollParentTo(target) |
|
|
} |
|
|
} |
|
|
}) |
|
|
}) |
|
|
|