()
| 39 | } |
| 40 | |
| 41 | override async willApply(): Promise<void> { |
| 42 | |
| 43 | if (!this.element.exists()) { |
| 44 | FancyError.show('action:hide_character:not_shown', { |
| 45 | asset: this.asset, |
| 46 | availableCharacters: Object.keys(this.engine.characters()), |
| 47 | statement: `<code class='language=javascript'>"${this._statement}"</code>`, |
| 48 | label: this.engine.state('label'), |
| 49 | step: this.engine.state('step') |
| 50 | }); |
| 51 | throw new Error('Attempted to hide a character that was not being shown.'); |
| 52 | } |
| 53 | } |
| 54 | |
| 55 | |
| 56 | override async apply(): Promise<void> { |
nothing calls this directly
no test coverage detected