diff --git a/Assets/ManagedResources/~Lua/Modules/Net/NetManager.lua b/Assets/ManagedResources/~Lua/Modules/Net/NetManager.lua index f8064bf89a..cbc5be439c 100644 --- a/Assets/ManagedResources/~Lua/Modules/Net/NetManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Net/NetManager.lua @@ -4594,12 +4594,12 @@ function this.UpPokemonLevelRequest(pokemonDId, upLv,oldLv, func) local data = buffer:DataByte() local msg = HeroInfoProto_pb.PokenmonUpLevelResponse() msg:ParseFromString(data) + --设置战斗力脏数据 + HeroPropManager.SetFuncPropDirty(Func_Prop_Type.Pokemon) -- Log("后端升级回复 "..msg.level) if func then func(msg) end - --设置战斗力脏数据 - HeroPropManager.SetFuncPropDirty(Func_Prop_Type.Pokemon) end) end @@ -4639,11 +4639,12 @@ function this.UpPokemonStarRequest(pokemonDId,curUpStarSelectPokemonData, func) Network:SendMessageWithCallBack(MessageTypeProto_pb.POKEMON_ADVANCED_REQUEST, MessageTypeProto_pb.POKEMON_ADVANCED_RESPONSE, msg, function(buffer) -- local data = buffer:DataByte() -- msg:ParseFromString(data) + --设置战斗力脏数据 + HeroPropManager.SetFuncPropDirty(Func_Prop_Type.Pokemon) + -- if func then func(msg) end - --设置战斗力脏数据 - HeroPropManager.SetFuncPropDirty(Func_Prop_Type.Pokemon) end) end @@ -4730,11 +4731,12 @@ function this.ReplaceTeamPokemonInfoRequest(_teamPokemonInfos, func) Network:SendMessageWithCallBack(MessageTypeProto_pb.POKEMON_REPLACE_REQUEST, MessageTypeProto_pb.POKEMON_REPLACE_RESPONSE, msg, function(buffer) -- local data = buffer:DataByte() -- msg:ParseFromString(data) + --设置战斗力脏数据 + HeroPropManager.SetFuncPropDirty(Func_Prop_Type.Pokemon) + -- if func then func(msg) end - --设置战斗力脏数据 - HeroPropManager.SetFuncPropDirty(Func_Prop_Type.Pokemon) end) end