Commit ab4aa967e36f86b0cc266598ce43430b8d339b94

Authored by zhouhaihai
1 parent 10020df6

无论什么方式翻开中继层格子都给奖励

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