Correction combat

This commit is contained in:
sladecraven 2021-01-23 17:23:56 +01:00
parent 3b4c35f173
commit 667845d77d
2 changed files with 2 additions and 2 deletions

View File

@ -54,7 +54,7 @@ export class RdDItemArme extends Item {
return arme.data.categorie_parade; return arme.data.categorie_parade;
} }
// pour compatibilité avec des personnages existants // pour compatibilité avec des personnages existants
if (arme.type == 'competencecreature') { if (arme.type == 'competencecreature' || arme.data.categorie == 'creature' ) {
return arme.data.categorie_parade || (arme.data.isparade ? 'sans-armes' : ''); return arme.data.categorie_parade || (arme.data.isparade ? 'sans-armes' : '');
} }
if (!arme.type.match(/arme|competencecreature/)) { if (!arme.type.match(/arme|competencecreature/)) {

View File

@ -2,7 +2,7 @@
"name": "foundryvtt-reve-de-dragon", "name": "foundryvtt-reve-de-dragon",
"title": "Rêve de Dragon", "title": "Rêve de Dragon",
"description": "Rêve de Dragon RPG for FoundryVTT", "description": "Rêve de Dragon RPG for FoundryVTT",
"version": "1.2.34", "version": "1.2.35",
"manifestPlusVersion": "1.0.0", "manifestPlusVersion": "1.0.0",
"minimumCoreVersion": "0.7.5", "minimumCoreVersion": "0.7.5",
"compatibleCoreVersion": "0.7.8", "compatibleCoreVersion": "0.7.8",