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,6 +656,7 @@ local function clickOut(self, room, block, params) | ||
656 | end | 656 | end |
657 | 657 | ||
658 | local function clickExit(self, room, block, params) | 658 | local function clickExit(self, room, block, params) |
659 | + local levellimit = csvdb["adv_chapterCsv"][self.chapterId].limitlevel | ||
659 | self:over(true, not self:isEndless() and self.level >= levellimit) | 660 | self:over(true, not self:isEndless() and self.level >= levellimit) |
660 | return true | 661 | return true |
661 | end | 662 | end |
@@ -1221,6 +1222,8 @@ function Adv:doActive(activeId, target) | @@ -1221,6 +1222,8 @@ function Adv:doActive(activeId, target) | ||
1221 | return true | 1222 | return true |
1222 | end | 1223 | end |
1223 | 1224 | ||
1225 | + | ||
1226 | + | ||
1224 | for _, effect in ipairs(activeData.effect:toArray()) do | 1227 | for _, effect in ipairs(activeData.effect:toArray()) do |
1225 | local cur = effect:toArray(true, "=") | 1228 | local cur = effect:toArray(true, "=") |
1226 | if doActiveEffect[cur[1]] then | 1229 | if doActiveEffect[cur[1]] then |