From 13b46cef718a44985b89f46c7dfe61c95c0b5c65 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Mon, 8 Nov 2021 07:47:21 +0100 Subject: [PATCH] Update release --- module/actor.js | 6 +++++- system.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/module/actor.js b/module/actor.js index daa139dc..b23b9fe2 100644 --- a/module/actor.js +++ b/module/actor.js @@ -285,7 +285,11 @@ export class RdDActor extends Actor { } return etatGeneral; } - + /* -------------------------------------------- */ + getActivePoisons( ) { + return duplicate( this.data.items.filter( item => item.type == 'poison' && item.data.data.active) ); + } + /* -------------------------------------------- */ getMalusArmure() { return Misc.toInt(Misc.templateData(this).attributs?.malusarmure?.value); diff --git a/system.json b/system.json index 374d03d4..50d36125 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "name": "foundryvtt-reve-de-dragon", "title": "Rêve de Dragon", "description": "Rêve de Dragon RPG for FoundryVTT", - "version": "1.5.26", + "version": "1.5.27", "manifestPlusVersion": "1.0.0", "minimumCoreVersion": "0.8.0", "compatibleCoreVersion": "0.8.9",