Correction combat

This commit is contained in:
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;
}
// 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' : '');
}
if (!arme.type.match(/arme|competencecreature/)) {