diff --git a/libs/events.js b/libs/events.js index 6b162aca..776e0580 100644 --- a/libs/events.js +++ b/libs/events.js @@ -1493,8 +1493,8 @@ events.prototype.battle = function (id, x, y, force, callback) { // ------ 支援技能 ------// if (core.isset(x) && core.isset(y)) { - var index = x + "," + y, buff = (core.status.checkBlock.buff || {})[index] || {}, - guards = buff.guards || []; + var index = x + "," + y, cache = (core.status.checkBlock.cache || {})[index] || {}, + guards = cache.guards || []; if (guards.length>0) { core.setFlag("__guards__"+x+"_"+y, guards); var actions = []; diff --git a/libs/ui.js b/libs/ui.js index 80dcd2c7..b7f68055 100644 --- a/libs/ui.js +++ b/libs/ui.js @@ -1683,7 +1683,7 @@ ui.prototype.drawMaps = function (index, x, y) { clearTimeout(core.interval.tipAnimate); core.clearLastEvent(); - core.status.checkBlock.buff = {}; + core.status.checkBlock.cache = {}; this.drawThumbnail(floorId, 'ui', core.status.maps[floorId].blocks, 0, 0, 416, x, y); // 绘图 diff --git a/project/functions.js b/project/functions.js index 6fe4cee4..81411901 100644 --- a/project/functions.js +++ b/project/functions.js @@ -499,9 +499,9 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = // ------ 支援 ------ var guards = []; // 检查光环缓存 - if (!core.isset(core.status.checkBlock.buff)) core.status.checkBlock.buff = {}; + if (!core.isset(core.status.checkBlock.cache)) core.status.checkBlock.cache = {}; var index = core.isset(x) && core.isset(y) ? (x + "," + y) : "floor"; - var cache = core.status.checkBlock.buff[index]; + var cache = core.status.checkBlock.cache[index]; if (!core.isset(cache)) { // 没有该点的缓存,则遍历每个图块 core.status.maps[floorId].blocks.forEach(function (block) { @@ -533,7 +533,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = }); // 放入缓存中 - core.status.checkBlock.buff[index] = { "hp_buff": hp_buff, "atk_buff": atk_buff, "def_buff": def_buff, "guards": guards }; + core.status.checkBlock.cache[index] = { "hp_buff": hp_buff, "atk_buff": atk_buff, "def_buff": def_buff, "guards": guards }; } else { // 直接使用缓存数据 hp_buff = cache.hp_buff;