Commit 2205321cc8f31cd1a9fde085869bb85b405f0e15
1 parent
702a3769
拾荒 选择bug
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
src/adv/Adv.lua
... | ... | @@ -1614,7 +1614,8 @@ local function chooseCommon(self, room, block, chooseData, choose, tag) |
1614 | 1614 | if not chooseData or not chooseData["button".. choose .."cond"] then return end |
1615 | 1615 | if not checkChooseCondFunc(self, chooseData["button".. choose .."cond"], room, block, tag, chooseData) then return end |
1616 | 1616 | local clearBlock = chooseData.keep ~= 1 |
1617 | - clearBlock = clearBlock and doChooseEffect(self, chooseData["button".. choose .."effect"], room, block, tag, chooseData) | |
1617 | + local clearBlock_ = doChooseEffect(self, chooseData["button".. choose .."effect"], room, block, tag, chooseData) | |
1618 | + clearBlock = clearBlock and clearBlock_ | |
1618 | 1619 | self:scoreChange(AdvScoreType.Event, chooseData.advScore) --增加加分 |
1619 | 1620 | return true, clearBlock |
1620 | 1621 | end | ... | ... |