javalent / initiative-tracker

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

🐞 Pathfinder initiative resolution for ties is incorrect #294

Open scooper4711 opened 1 month ago

scooper4711 commented 1 month ago

Check for existing bug reports before submitting.

Expected Behavior

With the pathfinder rules, if the player and GM tie for initiative, the tie is resolved in the GM's favor.

There's actually a feat that a player can take to resolve it in the player's favor. I don't think anyone takes it though, since it's such a corner case.

Current behaviour

ties in initiative appear to be resolved in favor of the player.

Reproduction

  1. start combat.
  2. player's initiatives are set to zero in settings
  3. creature's initiatives are rolled.
  4. update the player's initiative to the same as one of the creature's initiative
  5. Notice that the player jumps up above the creature.

Which Operating Systems are you using?

Obsidian Version Check

1.6.5 and 1.6.5

Plugin Version

13.0.12

Confirmation

Possible solution

No response

Trantion897 commented 1 month ago

I'm working on a patch to let you set the default result of initiative ties, but in the meantime you can drag & drop creatures to manually reorder everyone who got the same initiative roll.

I was about to create a pull request when I found the drag & drop support, and my patch kinda breaks it a bit. So I need a bit more time to sort that out.

scooper4711 commented 1 month ago

Thanks, I knew about the workaround. I was hoping for a fix since I may not always notice that there's a tie.

Cool that you're working on a patch already! Thanks!