fix(pet): 修复宠物技能列表长度检查问题
This commit is contained in:
@@ -62,7 +62,9 @@ func (p *Player) AddPetExp(petinfo *model.PetInfo, addExp uint32) {
|
||||
}
|
||||
|
||||
}
|
||||
petinfo.SkillList = petinfo.SkillList[:4] //归正到4
|
||||
if len(petinfo.SkillList) > 4 {
|
||||
petinfo.SkillList = petinfo.SkillList[:4] //归正到4
|
||||
}
|
||||
|
||||
t1 := common.NewTomeeHeader(2508, p.Info.UserID)
|
||||
rrr := &info.PetUpdateOutboundInfo{}
|
||||
|
||||
Reference in New Issue
Block a user