fix: try to fix #41

This commit is contained in:
bietiaop 2024-08-09 18:09:10 +08:00
parent f04ba5d175
commit 8304b8bffa

View file

@ -397,7 +397,8 @@ export class ZZZAvatarInfo {
logger.debug('bonus_detail', bonus_detail);
/** 处理音频加成 */
bonus_detail = weapon_ability(this.weapon, base_detail, bonus_detail);
if (this.weapon)
bonus_detail = weapon_ability(this.weapon, base_detail, bonus_detail);
logger.debug('bonus_detail', bonus_detail);
/** 处理角色加成 */