Gestion armes naturelles sur defense

This commit is contained in:
2025-05-04 18:35:10 +02:00
committed by VincentVk
parent 4cbe652a91
commit 8df9c8ddf5
+2 -2
View File
@@ -123,10 +123,10 @@ export class RdDItemArme extends Item {
if (defCategory == 'bouclier') {
return 'norm'
}
if (armeAttaque.system.competence.toLowerCase().match(/(fléau)/)) {
if (armeAttaque?.system?.competence?.toLowerCase().match(/(fléau)/)) {
return ''
}
if (armeParade.system.tir) {
if (armeParade.system?.tir) {
return ''
}
const attCategory = RdDItemArme.getCategorieParade(armeAttaque)