feedback5 WE2: 驭法铁卫 (斩业星熊) — the data's normal attack is physical, arts only with a skill (#15)
tools/build-data.mjs classifyAttack: a trait whose 法术伤害 comes only "技能开启时" keeps the normal attack's phys (display / AI only — her kit already attacks physically off-skill). Regenerated offline: 3 paths, the three forms of char_1044_hsgma2 dmgType arts -> phys. Golden: no scenario moved.
This commit is contained in:
1 parent
cd547b5178
commit
75c98f1d93
5 files changed
+9
-5
No files matched your search
@@ -805,9 +805,13 @@ function classifyAttack(char, traitText) {
|
||||
const prof = char.profession;
|
||||
const sub = char.subProfessionId;
|
||||
const trait = traitText || '';
|
||||
// 驭法铁卫 (斩业星熊) "技能开启时普通攻击会造成法术伤害": arts is the skill-on type; the normal attack — the record's
|
||||
// dmgType, what a card and the bot read — is physical (display only: her kit attacks physically off-skill and in arts
|
||||
// while a skill runs, op-hsgma2.js)
|
||||
const skillOnArts = /技能开启时[^,。;]*法术伤害/.test(trait);
|
||||
let dmgType;
|
||||
if ((prof === 'MEDIC' && sub !== 'incantationmedic') || sub === 'bard') dmgType = 'heal';
|
||||
else if (/法术伤害/.test(trait) || prof === 'CASTER') dmgType = 'arts';
|
||||
else if ((/法术伤害/.test(trait) && !skillOnArts) || prof === 'CASTER') dmgType = 'arts';
|
||||
else dmgType = 'phys';
|
||||
|
||||
let attackKind;
|
||||
|
||||
Reference in new issue
Block a user