解锁英雄时不再添加默认卡组
This commit is contained in:
parent
e84a94525e
commit
ae48354888
@ -5,7 +5,6 @@ import { updateRank } from '../service/rank'
|
||||
import { Card } from '../models/subdoc/Card'
|
||||
import { Hero } from '../models/subdoc/Hero'
|
||||
import { addHeroDefaultCardGroup } from './CardGroupDao'
|
||||
import { Base } from '@typegoose/typegoose/lib/defaultClasses'
|
||||
import { ItemInfo } from '../logic/ItemDef'
|
||||
import ItemCtrl from '../logic/ItemCtrl'
|
||||
import { BagItem } from '../models/BagItem'
|
||||
@ -65,7 +64,7 @@ export async function fetchAccount({ accountid, nickname, avatar, robot = false
|
||||
hero.exp = 0
|
||||
if (!account.heros.has(cfg.id + '')) {
|
||||
account.heros.set(cfg.id + '', hero)
|
||||
await addHeroDefaultCardGroup(accountid, hero.heroid, cardMap)
|
||||
// await addHeroDefaultCardGroup(accountid, hero.heroid, cardMap)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user