修正初始化统计数据时, type类型错误的bug

This commit is contained in:
zhl 2021-01-14 11:29:31 +08:00
parent 85998f3b35
commit 3d05eb8fc6

View File

@ -37,7 +37,7 @@ export class SelectHeroCommand extends Command<CardGameState, { client: Client,
for (let key in StateTypeEnum) {
if (!isNaN(Number(key))) {
// @ts-ignore
let type: StateTypeEnum = key;
let type: StateTypeEnum = Number(key);
player.statData.set(type, 0);
}
}