Skip to content

Commit

Permalink
[#5042] Restore spell level restriction to item choice advancements.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fyorl committed Jan 22, 2025
1 parent 6bb6e81 commit 1bf17dd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions templates/advancement/item-choice-config-details.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,20 @@
input=inputs.createCheckboxInput rootId=partId }}
{{ formGroup configuration.fields.type name="configuration.type" value=configuration.data.type
options=typeOptions rootId=partId }}
{{#if typeRestriction}}
{{#with configuration.fields.restriction.fields as |fields|}}
{{#with @root.configuration.data.restriction as |data|}}
{{#if @root.typeRestriction}}
{{ formGroup fields.type name="configuration.restriction.type" value=data.type
options=@root.typeRestriction.typeOptions rootId=@root.partId }}
{{#if @root.typeRestriction.subtypeOptions}}
{{ formGroup fields.subtype name="configuration.restriction.subtype" value=data.subtype
options=@root.typeRestriction.subtypeOptions rootId=@root.partId }}
{{/if}}
{{/if}}
{{#if @root.showSpellConfig}}
{{ formGroup fields.level name="configuration.restriction.level" value=data.level
options=@root.levelRestrictionOptions rootId=@root.partId }}
{{/if}}
{{/with}}
{{/with}}
{{/if}}
</fieldset>

0 comments on commit 1bf17dd

Please sign in to comment.