From 4fa2921024e46d03cf90a80cda5d992f7915422e Mon Sep 17 00:00:00 2001 From: zhouhaihai Date: Fri, 10 Apr 2020 15:12:20 +0800 Subject: [PATCH] bug --- src/adv/AdvMap.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/adv/AdvMap.lua b/src/adv/AdvMap.lua index 81d9e55..dd61574 100644 --- a/src/adv/AdvMap.lua +++ b/src/adv/AdvMap.lua @@ -60,7 +60,7 @@ function Map:checkOver() local mapCsv = csvdb["mapCsv"][self.mapId] if mapCsv.clearType == 1 then -- 消耗 - if self.adv:cost(mapCsv.clear:toNumMap(), {log = {desc = "overCost", int1 = block.event.id}}) then return true end + if self.adv:cost(mapCsv.clear:toNumMap(), {log = {desc = "overCost", int1 = self.mapId}}) then return true end elseif mapCsv.clearType == 2 then -- 杀光 if #self.adv.battle.player:getTeam(2) == 0 then return true end elseif mapCsv.clearType == 3 then -- 持有 -- libgit2 0.21.2