This commit is contained in:
meixiongfeng 2022-07-29 16:36:59 +08:00
parent 286e0e4e52
commit 7af40d1031

View File

@ -309,13 +309,13 @@ func (this *ModelHero) setEquipment(hero *pb.DBHero) (newHero *pb.DBHero, err er
_suiteExtId int32
)
update := make(map[string]interface{})
_suiteId = hero.SuiteId
_equipID = hero.EquipID
_suiteExtId = hero.SuiteExtId
if hero.IsOverlying && hero.SameCount > 1 {
// 克隆一个新的
hero.SameCount -= 1
_suiteId = hero.SuiteId
_equipID = hero.EquipID
_suiteExtId = hero.SuiteExtId
hero.SuiteId = 0
hero.EquipID = make([]string, 6)
hero.SuiteExtId = 0