feedback2: merge GitHub master (PR #48: 要塞 cannot hit air units — issue #35; 莫斯提马's slow shows its status icon — issue #16)

# Conflicts:
#	data/chess.json
This commit is contained in:
sganggs committed 2026-10-04 02:17:02 +08:00
commit 5f83d30cd1
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';