diff --git a/Assets/ManagedResources/~Lua/Modules/Guild/CarDelay/GuildCarDelayManager.lua b/Assets/ManagedResources/~Lua/Modules/Guild/CarDelay/GuildCarDelayManager.lua index b97c3611c0..005029f06d 100644 --- a/Assets/ManagedResources/~Lua/Modules/Guild/CarDelay/GuildCarDelayManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Guild/CarDelay/GuildCarDelayManager.lua @@ -26,7 +26,7 @@ end --开始战斗 this.score = 0 this.hurt = 0 -this.heroDidData = 0--抢夺是向后端传的id +this.heroDidData = {}--抢夺是向后端传的id function this.SetheroDid(_heroDidData) this.heroDidData = _heroDidData end @@ -53,7 +53,7 @@ function this.FightBattle( callBack) this.score = msg.score this.hurt = msg.hurt local fightData = BattleManager.GetBattleServerData(msg,fightType) - if this.heroDidData and this.heroDidData.teamInfo and #this.heroDidData.teamInfo > 0 then + if (this.progress == GuildCarDelayProType.Loot and this.heroDidData and this.heroDidData.teamInfo and #this.heroDidData.teamInfo > 0) or this.progress == GuildCarDelayProType.Challenge then UIManager.OpenPanel(UIName.BattlePanel, fightData, BATTLE_TYPE.GUILD_CAR_DELAY, callBack) else--抢夺目标阵容为空时 --车迟抢夺cd计时