diff --git a/modules/equipment/api_ench.go b/modules/equipment/api_ench.go index 48b956899..2630fee40 100644 --- a/modules/equipment/api_ench.go +++ b/modules/equipment/api_ench.go @@ -72,8 +72,8 @@ func (this *apiComp) Ench(session comm.IUserSession, req *pb.EquipmentEnchReq) ( return } AttrValue = rand.Int31n(conf.AttrMax-conf.AttrMini) + conf.AttrMini - OldAttrValue = equip.AdverbEntry[req.Index].Value - if AttrValue > equip.AdverbEntry[req.Index].Value { + OldAttrValue = equip.AdverbEntry[req.Index].EnchValue + if AttrValue > equip.AdverbEntry[req.Index].EnchValue { equip.AdverbEntry[req.Index].EnchValue = AttrValue this.module.equipmentsChangePush(session, []*pb.DB_Equipment{equip}) }