javalent/dice-roller

2d table roller ignores first column

Opened this issue · 0 comments

Check for existing bug reports before submitting.

  • I searched for existing Bug Reports and found no similar reports.

Expected Behavior

From documentation:
"Adding |xy to the end of a table roller will return a random table cell (not row) from the table, unless there is a column named xy"

Current behaviour

adding |xy only returns cells from columns other than the first column. (no column was labeled xy)

Results are never 00000 or YAAA

Reproduction

Examples to reproduce bug:
Roll Result: dice: [[Sandbox Note]]^TableX]]|xy

column 1 column 2
XXXX h
YYYY a

^TableX

Results are always h or a

Roll Result: dice: [[Sandbox Note]]^TableTest]]|xy

column 1 column 2 column 3
00000 444 $$$
YAAA ZUUU ///

^TableTest

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version Check

1.6.7; 1.6.7

Plugin Version

11.3.1

Confirmation

  • I have disabled all other plugins and the issue still persists.

Possible solution

No response