加经验bug

This commit is contained in:
meixiongfeng 2022-11-21 18:50:54 +08:00
parent f5844ad261
commit fdd878da08

View File

@ -520,7 +520,7 @@ func (this *ModelHero) AddCardExp(session comm.IUserSession, hero *pb.DBHero, ex
curExp = 0
break
}
maxExp = _data.Heroexp
if maxLv <= curLv && curExp >= maxExp { // 设置最大经验和等级
curLv = maxLv
curExp = maxExp