Skip to content

Commit

Permalink
fix: Encounters copied from the Encounter Builder no longer include d…
Browse files Browse the repository at this point in the history
…isabled players in the output (close #265)
  • Loading branch information
valentine195 committed Apr 15, 2024
1 parent 80c88cf commit fd045ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/builder/view/encounter/Encounter.svelte
Expand Up @@ -241,7 +241,7 @@
enc.name = $name;
}
if ($players?.length) {
enc.players = $players.map((p) => p.name);
enc.players = $players.filter((p) => p.enabled).map((p) => p.name);
}
if ($encounter?.size) {
enc.creatures = [...$encounter.entries()].map(([c, v]) => {
Expand Down

0 comments on commit fd045ac

Please sign in to comment.