获取英雄虚拟等级属性
This commit is contained in:
parent
2c77138db1
commit
29f8677fda
@ -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) {
|
||||
if vHero == nil || lv <= 0 {
|
||||
if hero == nil || lv <= 0 {
|
||||
return nil
|
||||
}
|
||||
hero.Lv = lv
|
||||
|
Loading…
Reference in New Issue
Block a user