v10.6.3 #613

Merged
uberwald merged 8 commits from VincentVk/foundryvtt-reve-de-dragon:v10 into v10 2023-01-19 10:50:28 +01:00
Showing only changes of commit bdc2d8db3a - Show all commits

View File

@ -859,7 +859,7 @@ export class RdDActor extends RdDBaseActor {
return undefined
}
const path = getPath(fieldName);
if (path){
if (path) {
await this.updateEmbeddedDocuments('Item', [{ _id: competence.id, [path]: value }]); // updates one EmbeddedEntity
}
}
@ -1284,12 +1284,7 @@ export class RdDActor extends RdDBaseActor {
async finDeRound(options = { terminer: false }) {
for (let effect of this.getEffects()) {
if (effect.duration.type !== 'none' && (effect.duration.remaining <= 0 || options.terminer)) {
if (effect.system.origin) {
await effect.update({ 'disabled': true });
}
else {
await effect.delete();
}
await effect.delete();
ChatMessage.create({ content: `${this.name} n'est plus ${Misc.lowerFirst(game.i18n.localize(effect.system.label))} !` });
}
}