Find roll buttons via data-roll-formula and not the roll class.

This commit is contained in:
Oliver-Akins 2024-02-03 13:33:03 -07:00
parent 0deda3235a
commit 15462c98fb
3 changed files with 2 additions and 7 deletions

View file

@ -1,6 +1,6 @@
<div class="skill">
<button
class="skill__label skill__button roll"
class="skill__label skill__button"
aria-label="{{localize "dotdungeon.aria.actor.pc.skill.button.roll" skill=name}}"
data-roll-formula="1{{dd-objectValue system (concat "stats." stat)}} {{dd-objectValue system.skills (concat stat "." name)}}"
data-roll-label="dotdungeon.rolls.skills.{{name}}"

View file

@ -1,6 +1,5 @@
<label class="stat stat--{{name}}">
<button
class="roll"
data-stat="{{name}}"
data-roll-formula="1{{value}}"
data-roll-label="dotdungeon.rolls.stats.{{name}}"