From 7014544754062b9b0fd36e956856b680b8bbb368 Mon Sep 17 00:00:00 2001 From: Erdnase <1398341065@qq.com> Date: Thu, 18 May 2023 21:56:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E4=B8=AD=E6=AF=92?= =?UTF-8?q?=E5=8A=A8=E7=94=BB=E5=AF=BC=E8=87=B4=E7=9A=84BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/plugins.js | 42 ++++++++++++++++++++++++++---------------- 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/project/plugins.js b/project/plugins.js index ec32b45..a02dc86 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -3169,20 +3169,18 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = gaodu = gaodu + 1; if (gaodu == 12) { switch (huanzi) { - case 0: - { - huanzi = 1; - gaodu = 0; - shangsheng = 1; - }; - break; - case 1: - { - huanzi = 2; - gaodu = 0; - shangsheng = 1; - }; - break; + case 0: { + huanzi = 1; + gaodu = 0; + shangsheng = 1; + }; + break; + case 1: { + huanzi = 2; + gaodu = 0; + shangsheng = 1; + }; + break; case 2: var tiaozizhong = 1; break; @@ -3215,7 +3213,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = } this.donghua = function () { if (core.status.floorId == "MT0") { - if (core.isReplaying()) {setTimeout(core.plugin.donghua, 100); return;} + if (core.isReplaying()) { setTimeout(core.plugin.donghua, 100); return; } core.setFlag("linshi", core.drawAnimate("jingu", 10, 10, false, function () { core.plugin.donghua(); @@ -3240,7 +3238,10 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = } else core.stopAnimate(core.getFlag("linshi2", 0), false); } this.donghua3 = function () { - if (core.getFlag("poison")) { + var outMap; + if (core.getHeroLoc('x') <= 0 || core.getHeroLoc('y') <= 0) + outMap = true; + if (core.getFlag("poison") && !outMap) { core.setFlag("linshi3", core.drawHeroAnimate("dufa", function () { core.plugin.donghua3(); @@ -4970,5 +4971,14 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = +}, + "等待动画结束过滤中毒": function () { + // 在此增加新插件 + maps.prototype.getPlayingAnimates = function (name) { + + return (core.status.animateObjs || []).filter(function (one) { + return one.id != flags.linshi3 && (name == null || one.name == name); + }).map(function (one) { return one.id }); + } } } \ No newline at end of file