Skip to content

Commit

Permalink
Use dnd5e concentration icon
Browse files Browse the repository at this point in the history
  • Loading branch information
Larkinabout committed Jun 7, 2024
1 parent 623ff42 commit 08a1b16
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions scripts/action-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -1477,9 +1477,9 @@ Hooks.once('tokenActionHudCoreApiReady', async (coreModule) => {
*/
#getConcentrationIcon (spell) {
if (spell?.type !== 'spell' || !this.displaySpellInfo || !spell.system?.properties?.has('concentration')) return null
const title = coreModule.api.Utils.i18n('DND5E.Scroll.RequiresConcentration')
const title = coreModule.api.Utils.i18n('DND5E.ScrollRequiresConcentration')
const icon = CONCENTRATION_ICON
return `<i class="${icon}" title="${title}"></i>`
return `<dnd5e-icon src="${icon}" title="${title}">`
}

/**
Expand Down
2 changes: 1 addition & 1 deletion scripts/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export const ACTIVATION_TYPE_ICON = {
/**
* Concentration icon
*/
export const CONCENTRATION_ICON = 'fas fa-head-side-brain'
export const CONCENTRATION_ICON = 'systems/dnd5e/icons/svg/statuses/concentrating.svg'

/**
* Conditions
Expand Down
2 changes: 1 addition & 1 deletion scripts/token-action-hud-dnd5e.min.js

Large diffs are not rendered by default.

0 comments on commit 08a1b16

Please sign in to comment.