还有好多错误

This commit is contained in:
2025-10-17 00:29:34 +08:00
parent 559ddfb653
commit d8ba69aada
11 changed files with 2598 additions and 28 deletions

View File

@@ -4,6 +4,7 @@ import { ecs } from "../../../../../../extensions/oops-plugin-framework/assets/l
import { smc } from "../../SingletonModuleComp";
import { FacSet } from "../../config/BoxSet";
import { HType } from "../../config/heroSet";
import { Attrs, DBuff } from "../../config/SkillSet";
@ecs.register('BattleMoveSystem')
export class BattleMoveSystem extends ecs.ComblockSystem implements ecs.ISystemUpdate {
@@ -20,7 +21,7 @@ export class BattleMoveSystem extends ecs.ComblockSystem implements ecs.ISystemU
if (!move.moving) return;
const shouldStop = this.checkEnemiesInFace(e);
view.is_atking = this.checkEnemiesInRange(e, view.dis);
view.is_atking = this.checkEnemiesInRange(e, view.Attrs[Attrs.DIS]);
// 更新渲染层级
this.updateRenderOrder(e);
@@ -28,7 +29,9 @@ export class BattleMoveSystem extends ecs.ComblockSystem implements ecs.ISystemU
if (!shouldStop) { //在攻击范围内停止移动
// if(view.fac==1){
if(view.is_stop||view.is_dead||view.DEBUFF_STUN>0 ||view.DEBUFF_FROST>0) {
const hasStun = view.V_DBUFF.some(d => d.debuff === DBuff.STUN);
const hasFrost = view.V_DBUFF.some(d => d.debuff === DBuff.FROST);
if(view.is_stop||view.is_dead||hasStun||hasFrost) {
view.status_change("idle");
return; //停止移动或者死亡不移动
}