From 458b7b2ca511cb516c1a045afbd684a51e2841a4 Mon Sep 17 00:00:00 2001 From: gaoxin Date: Thu, 25 Nov 2021 16:03:41 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=81=B5=E5=85=BD=E3=80=91=E5=8D=87?= =?UTF-8?q?=E7=BA=A7=E6=97=B6=EF=BC=8C=E6=B2=A1=E6=9C=89=E6=88=98=E6=96=97?= =?UTF-8?q?=E5=8A=9B=E5=8F=98=E5=8C=96=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Net/NetManager.lua | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) 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