javalent / initiative-tracker

TTRPG Initiative Tracker for Obsidian.md
GNU General Public License v3.0
147 stars 28 forks source link

🐞 Setting of static initiative not working in latest version #290

Open namtrah opened 3 months ago

namtrah commented 3 months ago

Check for existing bug reports before submitting.

Expected Behavior

I would expect that when static: true is set in an encounter block, that the initiatives of the creatures under creature: will have a static Initiative of 12 (possibly 10).

Current behaviour

This does not happen. Once I press the Start Encounter button (sword), the initiative of each creatures is a) different and b) changes by each subsequent pressing of the sword.

In Console, following Violation (Warning) is displayed (not certain at all if this is related).

plugin:initiative-tracker:106 [Violation] Added non-passive event listener to a scroll-blocking 'touchstart' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952

Reproduction

name: Encounter
static: true
creatures:
  - "1": Skeleton
  - "1": Aboleth

Which Operating Systems are you using?

Obsidian Version Check

Obsidian version: v1.6.6 Installer version: v1.6.5

Plugin Version

Initiative Tracker v13.0.12

Confirmation

Possible solution

None known.