chore: 调整勇士属性接口

This commit is contained in:
AncTe committed 2026-06-19 01:21:03 +08:00
1 parent 566ffc586a
commit 02bf39a62d
4 files changed
+37 -10

No files matched your search

+1 -1
View File
@@ -11,7 +11,7 @@ export function patchHero(state: ICoreState) {
logger.warn(56, 'core.status.hero', 'state.hero');
target[p] = newValue;
// @ts-expect-error 旧样板无法处理此类型
attr.setBaseAttribute(p, newValue);
attr.set(p, newValue);
return true;
},
get(_, p) {