要塞分支不再攻击空中单位;莫斯提马的减速显示状态图标 (#48)

要塞分支(灰毫 chess_char_2_18、号角 chess_char_5_08,普通与精锐)按官方不能攻击空中单位:build-data 不再把 fortress 归为可对空,重新生成 data/chess.json(只改这 4 条记录的 canHitFly),DESIGN §21.29 的技能释放调整保持不变。莫斯提马天赋的减速补上可见的减速状态图标(减速本身 0.1.1 已生效)。fix #35
This commit is contained in:
Y-PaP-Y authored and GitHub committed 2026-10-04 02:16:20 +08:00
1 parent 8b10625d3c
commit 052e906753
7 files changed
+41 -7

No files matched your search

+2 -2
View File
@@ -709,8 +709,8 @@ function classifyAttack(char, traitText) {
if (attackKind === 'heal') projectile = 'orb';
else if (attackKind === 'ranged') projectile = dmgType === 'arts' ? 'bolt' : 'arrow';
// Ranged attackers hit FLY unless the trait restricts them to ground targets (投掷手 "地面敌人").
const canHitFly = (attackKind === 'ranged' && !/地面敌人/.test(trait)) || sub === 'skywalker';
// Ranged attackers hit FLY unless the trait restricts them to ground targets (投掷手 "地面敌人", 要塞).
const canHitFly = (attackKind === 'ranged' && !/地面敌人/.test(trait) && sub !== 'fortress') || sub === 'skywalker';
let targetPriority = null;
if (/优先攻击空中单位/.test(trait)) targetPriority = 'fly';
else if (/防御力最低/.test(trait)) targetPriority = 'lowestDef';