Browse Source

又是一个小显示问题

tags/v19.2
枫谷剑仙 4 years ago
parent
commit
faaf4d7cad
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      script-skill-parser.js

+ 1
- 1
script-skill-parser.js View File

@@ -1994,7 +1994,7 @@ function renderSkill(skill, option = {})
if (condition) dict.condition = renderCondition(condition);
let targetDict = {}, attrs_types = [];
if (attrs && !isEqual(attrs, Attributes.all()))
if (attrs?.length && !isEqual(attrs, Attributes.all()))
{
targetDict.attrs = renderAttrs(attrs || [], {affix: attrs?.filter(attr=> attr !== 5)?.length});
attrs_types.push(targetDict.attrs);


Loading…
Cancel
Save