mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-04-21 23:13:39 +02:00
Fixed Countdown Actions not actually setting their DefaultOwnership. Fixed GMs not always getting Ownership of a countdown
This commit is contained in:
parent
e7be2a7d2b
commit
97636fa134
3 changed files with 6 additions and 120 deletions
|
|
@ -57,6 +57,10 @@ export default class CountdownField extends fields.ArrayField {
|
|||
|
||||
data.countdowns[foundry.utils.randomID()] = {
|
||||
...countdown,
|
||||
ownership: game.users.reduce((acc, curr) => {
|
||||
if (!curr.isGM) acc[curr.id] = countdown.defaultOwnership;
|
||||
return acc;
|
||||
}, {}),
|
||||
progress: {
|
||||
...countdown.progress,
|
||||
current: countdownStart,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue