CloneNewHero

This commit is contained in:
meixiongfeng 2022-09-26 13:39:10 +08:00
parent d4b6c368cb
commit 75a5a0f29d

View File

@ -62,8 +62,10 @@ func (this *apiComp) Awaken(session comm.IUserSession, req *pb.HeroAwakenReq) (c
if _hero.SameCount > 1 { //有堆叠的情况
// 克隆一个新的
_hero.SameCount -= 1
_hero.JuexingLv = 0
_hero.JuexProperty = map[string]int32{}
newHero := this.module.modelHero.CloneNewHero(_hero)
_hero.JuexProperty = map[string]int32{}
chanegCard = append(chanegCard, newHero)
_heroMap["isOverlying"] = false
_heroMap["sameCount"] = 1