javalent / initiative-tracker

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

🐞Pasting the encounter into my notes keeps all characters Even the removed one. #265

Closed namtrah closed 6 months ago

namtrah commented 6 months ago

Check for existing bug reports before submitting.

Expected Behavior

I expect that the enabled "active" players would be copied and added to a encounter block in a markdown note instead of all players.

Current behaviour

When I have a list of players, and deactivate one (disable them) because they are not playing this night, and then copy an encounter to my note. That player is still added to the encounter code block.

Reproduction

Presets: 0.1 Add Players to IT via the settings 0.2 Add a Party to IT via the settings 0.3 Make that party the default for encounters Reproduction:

  1. Open Encounter Builder and select a number of monsters
  2. (Presume that the list of Players has been added due to the Party default)
  3. Disable one or more of the players in the party
  4. Copy the Encounter using the icon
  5. Paste the encounter into a Note (any).
  6. Let Live Preview/Reading Mode show the encounter. You notice all players are there.
  7. In Source view, remove the players not in the encounter
  8. Still after switching to LP/RM you see all players, as if the Party is overriding the changes.

Which Operating Systems are you using?

Obsidian Version Check

Obsidian version: v1.5.12 Installer version: v1.5.3

Plugin Version

13.0.4

Confirmation

Possible solution

No response