Commit ab4aa967e36f86b0cc266598ce43430b8d339b94
1 parent
10020df6
无论什么方式翻开中继层格子都给奖励
Showing
2 changed files
with
4 additions
and
3 deletions
Show diff stats
src/adv/Adv.lua
... | ... | @@ -1690,9 +1690,6 @@ function Adv:clickBlock(roomId, blockId, params) |
1690 | 1690 | if not block.isOpen then |
1691 | 1691 | if self.isRelay or checkAroundBlocks() then --开放 |
1692 | 1692 | self:getCurMap():openBlock(roomId, blockId, true, true) |
1693 | - if self.isRelay and self:getCurMap():isAllOpen() then -- 发放翻开的奖励 | |
1694 | - self:passAdvRelay() | |
1695 | - end | |
1696 | 1693 | status = true |
1697 | 1694 | end |
1698 | 1695 | else | ... | ... |
src/adv/AdvMap.lua
... | ... | @@ -272,6 +272,10 @@ function Map:openBlock(roomId, blockId, isPlayer, ignoreBack) |
272 | 272 | if not ignoreBack then |
273 | 273 | self.adv:backBlockChange(roomId, blockId) |
274 | 274 | end |
275 | + | |
276 | + if self.adv.isRelay and self:isAllOpen() then -- 发放翻开的奖励 | |
277 | + self.adv:passAdvRelay() | |
278 | + end | |
275 | 279 | end |
276 | 280 | return status |
277 | 281 | end | ... | ... |