mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-07-22 02:19:54 +02:00
.
This commit is contained in:
parent
958eaa310c
commit
c3421bc54e
1 changed files with 3 additions and 1 deletions
|
|
@ -46,7 +46,9 @@ export default class DhpCombat extends Combat {
|
||||||
for (let actor of actors) {
|
for (let actor of actors) {
|
||||||
await actor.createEmbeddedDocuments(
|
await actor.createEmbeddedDocuments(
|
||||||
'ActiveEffect',
|
'ActiveEffect',
|
||||||
effects.filter(x => x.effectTargetTypes.includes(actor.type))
|
effects
|
||||||
|
.filter(x => x.effectTargetTypes.includes(actor.type))
|
||||||
|
.map(x => foundry.utils.deepClone(x))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue