lt hai 1 ano
pai
achega
8d14bad629
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      RO_Server_Trunk-branch_0.1.39/roserver/game/model/role.go

+ 3 - 1
RO_Server_Trunk-branch_0.1.39/roserver/game/model/role.go

@@ -3710,7 +3710,9 @@ func (this *Role) payInfoGet(goodsType, goodsId, count int32, rushStage, rushRou
 	if num > 0 {
 		cfgData, ok := serverproto.ItemCfgLoader[1]
 		if ok {
-			payRewardInfo.Amount -= float32(cfgData.NatureType)
+			if (payRewardInfo.Amount - float32(cfgData.NatureType)) <= 0 {
+				payRewardInfo.Amount = 0
+			}
 		}
 		this.roleBag.DelItemById(1, 1, AddFrom_System)
 	}