fix: 属性编号问题

This commit is contained in:
unanmed 2026-10-17 22:15:03 +08:00
parent c1b1bd5301
commit 2494629f0d
2 changed files with 7 additions and 7 deletions

View File

@ -29,7 +29,7 @@ export class MainDamageCalculator implements IDamageCalculator<
// 无敌
if (
enemy.hasSpecial(20) &&
enemy.hasSpecial(18) &&
handler.state.hero.items.itemCount('cross') < 1
) {
return { damage: Infinity, turn: 0 };

View File

@ -230,7 +230,7 @@ export class BetweenDamageView extends BaseMapDamageView<IManhattanRangeParam> {
return null;
}
const otherEnemy = other.getComputedEnemy();
if (!otherEnemy.hasSpecial(16)) {
if (!otherEnemy.hasSpecial(14)) {
return null;
}
@ -296,27 +296,27 @@ export class MainMapDamageConverter implements IMapDamageConverter<
const views: IMapDamageView<any>[] = [];
const { enemy, locator, hero } = handler;
const zone = enemy.getSpecial<ISpecial13Value>(15);
const zone = enemy.getSpecial<ISpecial13Value>(13);
if (zone) {
views.push(new ZoneDamageView(context, locator, zone));
}
if (enemy.hasSpecial(16)) {
if (enemy.hasSpecial(14)) {
views.push(new BetweenDamageView(context, enemy, locator, hero));
}
const repulse = enemy.getSpecial<number>(18);
const repulse = enemy.getSpecial<number>(16);
if (repulse) {
views.push(new RepulseDamageView(context, locator, repulse));
}
const laser = enemy.getSpecial<number>(24);
const laser = enemy.getSpecial<number>(22);
if (laser) {
const face = handler.state.faceManager.get(FaceGroup.Dir4)!;
views.push(new LaserDamageView(context, locator, laser, face));
}
if (enemy.hasSpecial(27)) {
if (enemy.hasSpecial(25)) {
views.push(new AmbushDamageView(context, locator));
}