This commit is contained in:
meixiongfeng 2023-11-02 11:05:17 +08:00
parent 3b673a5b10
commit 9fc5e5815b

View File

@ -1044,6 +1044,7 @@ func (this *Hero) GetRandomCardByCardPool(cardPool string, count int32) (cards [
hid string
sz map[string]struct{}
)
sz = make(map[string]struct{}, count)
for i := 0; i < int(count); i++ {
hid, err = this.configure.GetHeroByPoolExcept(cardPool, sz)
if err != nil {