{{#if toggles}}{{> "systems/pf2e/templates/actors/partials/toggles.hbs" toggles=toggles}}{{/if}}

{{localize "PF2E.Actor.Attacks"}}

{{#if elementalBlasts}}
    {{#each elementalBlasts as |blast|}} {{> "systems/pf2e/templates/actors/character/partials/elemental-blast.hbs" action=blast}} {{/each}}
{{/if}}
    {{#each data.actions as |action ai|}}
  1. {{action.label}} {{#if action.item.isTemporary}}{{/if}}

    {{#if (any action.ready ../actor.flags.pf2e.showUnreadyStrikes)}} {{#> attackDamage action}}{{/attackDamage}} {{/if}}
    {{#if (and action.altUsages (or action.ready ../actor.flags.pf2e.showUnreadyStrikes))}} {{#each action.altUsages as |usage|}}
    {{#if usage.item.isThrown}} {{else}} {{/if}} {{#> attackDamage usage isAltUsage=true}}{{/attackDamage}}
    {{/each}} {{/if}} {{#if (and action.ammunition (or action.ready ../actor.flags.pf2e.showUnreadyStrikes))}}
    {{#if (gt action.item.ammo.uses.max 1)}} {{action.item.ammo.uses.value}} {{/if}}
    {{/if}}
    {{#each action.auxiliaryActions as |aux aid|}} {{/each}}

    {{{localize action.description}}}


    {{{localize "PF2E.CritSuccess"}}}
    {{{localize action.criticalSuccess}}}
    {{{localize "PF2E.Success"}}}
    {{{localize action.success}}}
    {{#each action.traits as |trait|}} {{trait.label}} {{/each}} {{#each action.weaponTraits as |trait|}} {{trait.label}} {{/each}} {{#if action.item.system.reload.label}} {{action.item.system.reload.label}} {{/if}} {{#if action.item.system.maxRange}} {{localize (concat "PF2E.TraitRange" action.item.system.maxRange)}} {{else if action.item.system.range}} {{localize (concat "PF2E.TraitRangeIncrement" action.item.system.range)}} {{/if}}
  2. {{/each}}
{{#each actions.encounter as |section sid|}}

{{section.label}} {{#if @root.options.editable}}
{{/if}}

    {{#each section.actions as |action|}} {{> "systems/pf2e/templates/actors/partials/action.hbs" action=action}} {{/each}}
{{/each}}
{{!# Active exploration activities are only shown if one exists}} {{#if actions.exploration.active}}

{{localize "PF2E.Actor.Character.ActiveHeader"}} {{#if @root.options.editable}}
{{/if}}

    {{#each actions.exploration.active as |action|}} {{> "systems/pf2e/templates/actors/partials/action.hbs" action=action}} {{/each}}
{{/if}}

{{localize "PF2E.ActionsActionsHeader"}} {{#if @root.options.editable}}
{{/if}}

    {{#each actions.exploration.other as |action|}} {{> "systems/pf2e/templates/actors/partials/action.hbs" action=action}} {{/each}}

{{localize "PF2E.ActionsActionsHeader"}} {{#if @root.options.editable}}
{{/if}}

    {{#each actions.downtime as |action aid|}} {{> "systems/pf2e/templates/actors/partials/action.hbs" action=action}} {{/each}}
{{#*inline "attackDamage"}}
{{#each variants as |variant index|}} {{/each}} {{#if item.dealsDamage}} {{#if (and versatileOptions (not (eq item.altUsageType "thrown")))}}
{{#each versatileOptions as |option|}} {{/each}}
{{/if}} {{/if}}
{{/inline}}