Commit 3ecbe55355d44c54e4556ca4e3f32352f147d645
1 parent
bc28fe9e
没有编队
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/adv/AdvBattle.lua
@@ -61,7 +61,7 @@ end | @@ -61,7 +61,7 @@ end | ||
61 | 61 | ||
62 | function Battle:initPlayer() | 62 | function Battle:initPlayer() |
63 | local advTeam = self.adv.owner:getProperty("advTeam") | 63 | local advTeam = self.adv.owner:getProperty("advTeam") |
64 | - if not next(advTeam.heros) then return end | 64 | + if not advTeam.heros or not next(advTeam.heros) then return end |
65 | local leaderPassive = {} | 65 | local leaderPassive = {} |
66 | local player = advTeam.player | 66 | local player = advTeam.player |
67 | if not player then | 67 | if not player then |