From cfb05efec866df9dc231f6b07655d331cc7bd5e4 Mon Sep 17 00:00:00 2001 From: 157 <3619242020@qq.com> Date: Tue, 30 Jan 2024 11:30:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E6=BB=9AhasSkillTag=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=E4=BB=A3=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noname/library/element/player.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/noname/library/element/player.js b/noname/library/element/player.js index 11032e4ed..afd6e572d 100644 --- a/noname/library/element/player.js +++ b/noname/library/element/player.js @@ -8329,10 +8329,6 @@ export class Player extends HTMLDivElement { return false; } hasSkillTag(tag, hidden, arg, globalskill) { - let cache = CacheContext.getCacheContext(); - if(!cache){ - cache = new CacheContext(); - } var skills = this.getSkills(hidden); if (globalskill) { skills.addArray(lib.skill.global); @@ -8342,7 +8338,7 @@ export class Player extends HTMLDivElement { var info = lib.skill[skills[i]]; if (info && info.ai) { if (info.ai.skillTagFilter && info.ai[tag] && - info.ai.skillTagFilter(cache.delegate(this), tag, arg) === false) continue; + info.ai.skillTagFilter(this, tag, arg) === false) continue; if (typeof info.ai[tag] == 'string') { if (info.ai[tag] == arg) return true; }