From 01b4dc2e8921f9e4cc5be02f5fa49297a44c8def Mon Sep 17 00:00:00 2001 From: YouWei Zhao Date: Mon, 18 May 2020 20:03:05 +0800 Subject: [PATCH] fix expand enemy:xx:xx --- _server/MotaActionParse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_server/MotaActionParse.js b/_server/MotaActionParse.js index 3b723d2e..b75a0331 100644 --- a/_server/MotaActionParse.js +++ b/_server/MotaActionParse.js @@ -972,7 +972,7 @@ ActionParser.prototype.matchEvalAtom = function(args) { var EnemyId_List=MotaActionBlocks.enemyattr_e.json.args0[1].options; // [["生命", "hp"], ...] match=new RegExp("^enemy:([a-zA-Z0-9_]+):(" + EnemyId_List.map(function(v){return v[1]}).join('|') + ")$").exec(args[0]) if(match){ - args=[MotaActionFunctions.replaceToName_token(match[1]),MotaActionFunctions.replaceToName_token(match[2])] + args=[match[1],match[2]] return rt(MotaActionBlocks['enemyattr_e'].xmlText, args); } // 图块ID