From af5af2e0aff91db17f76ff557abaf8d481c0b353 Mon Sep 17 00:00:00 2001 From: "Kyle J. Kemp" Date: Tue, 1 Oct 2024 06:37:54 -0500 Subject: [PATCH] allow macros sometimes in spell picker --- src/app/shared/components/input-spell/input-spell.component.ts | 3 ++- src/app/tabs/npcs/npcs-editor/npcs-editor.component.html | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/app/shared/components/input-spell/input-spell.component.ts b/src/app/shared/components/input-spell/input-spell.component.ts index 1eec4eb..88dd96b 100644 --- a/src/app/shared/components/input-spell/input-spell.component.ts +++ b/src/app/shared/components/input-spell/input-spell.component.ts @@ -21,11 +21,12 @@ export class InputSpellComponent implements OnInit { public label = input('Spell'); public change = output(); public defaultValue = input(); + public allowMacro = input(); public values = computed(() => { const baseSpells = this.modService .mod() - .stems.filter((s) => s._hasSpell) + .stems.filter((s) => s._hasSpell || (this.allowMacro() && s._hasMacro)) .map((s) => s._gameId); return baseSpells.sort(); diff --git a/src/app/tabs/npcs/npcs-editor/npcs-editor.component.html b/src/app/tabs/npcs/npcs-editor/npcs-editor.component.html index 071ff59..a19ff4f 100644 --- a/src/app/tabs/npcs/npcs-editor/npcs-editor.component.html +++ b/src/app/tabs/npcs/npcs-editor/npcs-editor.component.html @@ -317,7 +317,7 @@
- +