Compare commits

...

3 commits

Author SHA1 Message Date
WBHarry
2c1f52413d Raised verison
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
2026-06-23 23:33:29 +02:00
WBHarry
ca82cbcf66
. (#2041) 2026-06-23 23:28:04 +02:00
Carlos Fernandez
07b7c82094
Fetch origin fetch when in compendium (#2042) 2026-06-23 23:26:53 +02:00
3 changed files with 6 additions and 4 deletions

View file

@ -225,7 +225,7 @@ export default class DhActiveEffect extends foundry.documents.ActiveEffect {
*/
_getTags() {
const tags = [];
const originActor = DhActiveEffect.#resolveParentDocument(fromUuidSync(this.origin), Actor);
const originActor = DhActiveEffect.#resolveParentDocument(fromUuidSync(this.origin, { strict: false }), Actor);
if (originActor && originActor !== this.actor) {
tags.push(_loc('DAGGERHEART.EFFECTS.OriginTag', { name: originActor.name }));
} else if (!(this.parent instanceof Actor)) {

View file

@ -46,7 +46,9 @@ export default class DhpCombat extends Combat {
for (let actor of actors) {
await actor.createEmbeddedDocuments(
'ActiveEffect',
effects.filter(x => x.effectTargetTypes.includes(actor.type))
effects
.filter(x => x.effectTargetTypes.includes(actor.type))
.map(x => foundry.utils.deepClone(x))
);
}
} else {

View file

@ -2,7 +2,7 @@
"id": "daggerheart",
"title": "Daggerheart",
"description": "An unofficial implementation of the Daggerheart system",
"version": "2.4.0",
"version": "2.4.1",
"compatibility": {
"minimum": "14.364",
"verified": "14.364",
@ -10,7 +10,7 @@
},
"url": "https://github.com/Foundryborne/daggerheart",
"manifest": "https://raw.githubusercontent.com/Foundryborne/daggerheart/v14/system.json",
"download": "https://github.com/Foundryborne/daggerheart/releases/download/2.4.0/system.zip",
"download": "https://github.com/Foundryborne/daggerheart/releases/download/2.4.1/system.zip",
"authors": [
{
"name": "WBHarry"