fix(character): fix mounts when wielding no weapons

This commit is contained in:
Axel Cocat 2022-06-21 01:54:21 +02:00
parent e497ecb725
commit 0e4fa65d3c

View file

@ -302,7 +302,7 @@
const offHand = charData.equipment.find(e => e.slot === 16); const offHand = charData.equipment.find(e => e.slot === 16);
const ranged = charData.equipment.find(e => e.slot === 17); const ranged = charData.equipment.find(e => e.slot === 17);
characterModel.charCustomization.sheathMain = sheathTypes[mainHand.classId][mainHand.subclassId]; characterModel.charCustomization.sheathMain = mainHand !== undefined ? sheathTypes[mainHand.classId][mainHand.subclassId] : undefined;
if (offHand !== undefined) { if (offHand !== undefined) {
characterModel.charCustomization.sheathOff = sheathTypes[offHand.classId][offHand.subclassId]; characterModel.charCustomization.sheathOff = sheathTypes[offHand.classId][offHand.subclassId];
} else if (ranged !== undefined) { } else if (ranged !== undefined) {