Commit 1bb3abca3b613cc5f3d927cf5d212ed9663ec987
1 parent
b5185d3b
冒险 退出 bug
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
src/adv/Adv.lua
... | ... | @@ -656,6 +656,7 @@ local function clickOut(self, room, block, params) |
656 | 656 | end |
657 | 657 | |
658 | 658 | local function clickExit(self, room, block, params) |
659 | + local levellimit = csvdb["adv_chapterCsv"][self.chapterId].limitlevel | |
659 | 660 | self:over(true, not self:isEndless() and self.level >= levellimit) |
660 | 661 | return true |
661 | 662 | end |
... | ... | @@ -1221,6 +1222,8 @@ function Adv:doActive(activeId, target) |
1221 | 1222 | return true |
1222 | 1223 | end |
1223 | 1224 | |
1225 | + | |
1226 | + | |
1224 | 1227 | for _, effect in ipairs(activeData.effect:toArray()) do |
1225 | 1228 | local cur = effect:toArray(true, "=") |
1226 | 1229 | if doActiveEffect[cur[1]] then | ... | ... |