mirror of
https://github.com/unanmed/HumanBreak.git
synced 2025-01-19 12:49:25 +08:00
fix: 突刺技能的显伤
This commit is contained in:
parent
1c04f68982
commit
bd1421b59c
@ -652,6 +652,7 @@ export class DamageEnemy<T extends EnemyIds = EnemyIds> {
|
||||
const endX = Math.min(floor.width - 1, this.x + range);
|
||||
const endY = Math.min(floor.height - 1, this.y + range);
|
||||
const dam = Math.max((enemy.value ?? 0) - hero.def!, 0);
|
||||
const objs = core.getMapBlocksObj(this.floorId);
|
||||
|
||||
for (let x = startX; x <= endX; x++) {
|
||||
for (let y = startY; y <= endY; y++) {
|
||||
@ -661,7 +662,8 @@ export class DamageEnemy<T extends EnemyIds = EnemyIds> {
|
||||
) {
|
||||
continue;
|
||||
}
|
||||
const loc = `${x},${y}`;
|
||||
const loc = `${x},${y}` as LocString;
|
||||
if (objs[loc]?.event.noPass) continue;
|
||||
this.setMapDamage(damage, loc, dam, '突刺');
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user