天赋技能只存放在天赋属性里

This commit is contained in:
meixiongfeng 2024-01-19 20:30:48 +08:00
parent 38d8112efa
commit 474a14ab48

View File

@ -693,13 +693,6 @@ func (this *ModelHero) setTalentProperty(hero *pb.DBHero, conf *cfg.GameHeroTale
hero.TalentProperty[conf.Attr.A] += conf.Attr.N
_heroMap := make(map[string]interface{}, 0)
if conf.Skill != 0 {
hero.NormalSkill = append(hero.NormalSkill, &pb.SkillData{
SkillID: conf.Skill,
SkillLv: 1,
})
_heroMap["normalSkill"] = hero.NormalSkill
}
_heroMap["talentProperty"] = hero.TalentProperty
if err := this.ChangeList(hero.Uid, hero.Id, _heroMap); err != nil {