Commit a1d80fd6bad6d81dc77089b6492e68c00f78296e
1 parent
e089be2e
多队挂机 电台任务英雄也不能重用
Showing
1 changed file
with
9 additions
and
0 deletions
Show diff stats
src/actions/AdvAction.lua
@@ -57,6 +57,15 @@ local function checkFormat(role, format, checkAdvTeam) | @@ -57,6 +57,15 @@ local function checkFormat(role, format, checkAdvTeam) | ||
57 | end | 57 | end |
58 | end | 58 | end |
59 | 59 | ||
60 | + -- 多队挂机 电台任务英雄也不能重用 | ||
61 | + local radioTask = role:getProperty("radioTask") | ||
62 | + for id, taskInfo in pairs(radioTask) do | ||
63 | + local heros = taskInfo["heros"] or {} | ||
64 | + for _, heroId in ipairs(heros) do | ||
65 | + hadHero[heroId] = true | ||
66 | + end | ||
67 | + end | ||
68 | + | ||
60 | if not format.leader then return end | 69 | if not format.leader then return end |
61 | if format.leader2 == format.leader then return end | 70 | if format.leader2 == format.leader then return end |
62 | local hadLeader = false | 71 | local hadLeader = false |