修正初始化统计数据时, type类型错误的bug
This commit is contained in:
parent
85998f3b35
commit
3d05eb8fc6
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user