diff --git a/module/rdd-calendrier.js b/module/rdd-calendrier.js index f8292a82..b84e796d 100644 --- a/module/rdd-calendrier.js +++ b/module/rdd-calendrier.js @@ -225,7 +225,7 @@ export class RdDCalendrier extends Application { checkMaladie( periode) { for (let actor of game.actors) { if (actor.type == 'personnage') { - let maladies = actor.filterItems( item => (item.type == 'maladie' || item.type == 'poison') && item.data.periodicite.toLowerCase().includes(periode) ); + let maladies = actor.filterItems( item => (item.type == 'maladie' || (item.type == 'poison' && item.data.active) ) && item.data.periodicite.toLowerCase().includes(periode) ); for (let maladie of maladies) { if ( maladie.data.identifie) { ChatMessage.create({ content: `${actor.name} souffre de ${maladie.name} (${maladie.type}): vérifiez que les effets ne se sont pas aggravés !` }); diff --git a/system.json b/system.json index be013e59..374d03d4 100644 --- a/system.json +++ b/system.json @@ -2,11 +2,11 @@ "name": "foundryvtt-reve-de-dragon", "title": "Rêve de Dragon", "description": "Rêve de Dragon RPG for FoundryVTT", - "version": "1.5.25", + "version": "1.5.26", "manifestPlusVersion": "1.0.0", "minimumCoreVersion": "0.8.0", "compatibleCoreVersion": "0.8.9", - "templateVersion": 125, + "templateVersion": 126, "author": "LeRatierBretonnien", "authors": [ { diff --git a/template.json b/template.json index 81954ebf..81c09dd0 100644 --- a/template.json +++ b/template.json @@ -896,6 +896,7 @@ "remedesconnus": false, "remedes": "", "dommages":"", + "active": false, "description": "", "descriptionmj": "" }, diff --git a/templates/item-poison-sheet.html b/templates/item-poison-sheet.html index 479f78c6..f9a1e56d 100644 --- a/templates/item-poison-sheet.html +++ b/templates/item-poison-sheet.html @@ -12,6 +12,10 @@ {{!-- Sheet Body --}}
+
+ + +
{{#if (or isGM data.identifie)}}