获取英雄虚拟等级属性

This commit is contained in:
meixiongfeng 2023-09-27 10:06:40 +08:00
parent 2c77138db1
commit 29f8677fda

View File

@ -929,7 +929,7 @@ func (this *Hero) PassonHero(session comm.IUserSession, heroObjID map[string]boo
// 构建一个虚拟等级的英雄 // 构建一个虚拟等级的英雄
func (this *Hero) GetVirtualHero(hero *pb.DBHero, lv int32) (vHero *pb.DBHero) { func (this *Hero) GetVirtualHero(hero *pb.DBHero, lv int32) (vHero *pb.DBHero) {
if vHero == nil || lv <= 0 { if hero == nil || lv <= 0 {
return nil return nil
} }
hero.Lv = lv hero.Lv = lv