Compare commits

..

2 Commits

Author SHA1 Message Date
11be759719 Merge branch 'noAnimate' into hasAnimate 2023-05-18 21:57:08 +08:00
7014544754 修复了中毒动画导致的BUG 2023-05-18 21:56:29 +08:00

View File

@ -3169,15 +3169,13 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
gaodu = gaodu + 1;
if (gaodu == 12) {
switch (huanzi) {
case 0:
{
case 0: {
huanzi = 1;
gaodu = 0;
shangsheng = 1;
};
break;
case 1:
{
case 1: {
huanzi = 2;
gaodu = 0;
shangsheng = 1;
@ -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 });
}
}
}