From 098d59b788f4158c33d225498cd506f955764a0f Mon Sep 17 00:00:00 2001 From: zhuguoqing Date: Fri, 27 May 2022 09:57:53 +0800 Subject: [PATCH] update --- assets/resources/proto/battle/cs_proto.proto | 1 + assets/scripts/UI/battlematch/UIChoseHero.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/resources/proto/battle/cs_proto.proto b/assets/resources/proto/battle/cs_proto.proto index 123f18ba..95109d9e 100644 --- a/assets/resources/proto/battle/cs_proto.proto +++ b/assets/resources/proto/battle/cs_proto.proto @@ -916,6 +916,7 @@ message CMMatchChoose repeated MFPair skill_list = 4; repeated int32 baseskin = 5; optional int32 hero_skin = 6; + optional int32 hero_uniid = 7; } message CMMatchStartGame diff --git a/assets/scripts/UI/battlematch/UIChoseHero.js b/assets/scripts/UI/battlematch/UIChoseHero.js index 0e05cf30..cb5f650d 100644 --- a/assets/scripts/UI/battlematch/UIChoseHero.js +++ b/assets/scripts/UI/battlematch/UIChoseHero.js @@ -175,12 +175,12 @@ cc.Class({ if (this.team_mode) { let data = { hero_id: v.hero_id, - hero_uniid:this.herodatalist[i].hero_uuid, weapons: JSON.parse(this.weaponStr), skins: [], baseskin: gameConfig.all_ItemConfig[v.hero_skin].skinid, hero_skin: v.hero_skin, skill_list: cc.playerData.getbattleskilllist(), + hero_uniid:parseInt(this.herodatalist[i].hero_uuid), }; this.matchdata = data;