fix: 统一英雄攻击距离并移除冗余最小距离逻辑
将不同英雄类型的攻击距离统一调整为720,简化距离计算逻辑。 移除HeroAttrsComp中根据英雄类型动态计算最小攻击距离的代码,因为所有英雄的最小攻击距离现在均为0。 同时更新MoveSystem中的攻击范围判断逻辑,将远程英雄的最大攻击范围从360调整为720以保持一致性。
This commit is contained in:
@@ -173,7 +173,7 @@ export class MoveSystem extends ecs.ComblockSystem implements ecs.ISystemUpdate
|
||||
const [, maxRange] = this.resolveCombatRange(model, 360, 720);
|
||||
return dist <= maxRange;
|
||||
}
|
||||
const [, maxRange] = this.resolveCombatRange(model, 120, 360);
|
||||
const [, maxRange] = this.resolveCombatRange(model, 120, 720);
|
||||
return dist <= maxRange;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user