diff --git a/src/adv/Adv.lua b/src/adv/Adv.lua index e1500ae..6d1e79a 100644 --- a/src/adv/Adv.lua +++ b/src/adv/Adv.lua @@ -858,10 +858,12 @@ local function chooseCommon(self, room, block, chooseData, choose, tag) end end, -- xx角色(todo 队长) - [2] = function(_, leaderType) - local hero = self.owner.heros[self.owner:getProperty("advTeam").leader] - if hero and hero:getProperty("type") == leaderType then - return true + [2] = function(_, heroType) + for slot, heroId in pairs(self.owner:getProperty("advTeam").heros) do + local hero = self.owner.heros[heroId] + if hero and hero:getProperty("type") == heroType then + return true + end end end, --消灭所有怪 -- libgit2 0.21.2