From 168953b1bf61a46fabe4b15f6a9527818164f917 Mon Sep 17 00:00:00 2001 From: IceCola <739201322@qq.com> Date: Mon, 25 Mar 2024 02:27:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86threaten.target?= =?UTF-8?q?=E8=B0=83=E7=94=A8=E4=BC=9A=E5=87=BA=E7=8E=B0=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=9A=84bug=EF=BC=8C=E5=8F=A6=E5=A4=96=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=BA=86=E4=B8=80=E4=B8=8Bthreaten=E7=9A=84=E8=B0=83=E7=94=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- noname/get/index.js | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/noname/get/index.js b/noname/get/index.js index cd7a089b3..8c4f217ea 100644 --- a/noname/get/index.js +++ b/noname/get/index.js @@ -4390,18 +4390,13 @@ export class Get extends Uninstantable { zeroplayer = true; zerotarget = true; } - if (typeof temp3 == 'function' && temp3(player, target) != undefined) { - threaten *= temp3(player, target); + if (typeof temp3 == 'object') { + temp3 = temp3.target; } - else if (typeof temp3 == 'object') { - if (typeof temp3.target == 'number') { - threaten *= temp3; - } - else if (typeof temp3.target == 'function' && temp3(player, target) != undefined) { - threaten *= temp3(player, target); - } + if (typeof temp3 == 'function') { + temp3 = temp3(player, target); } - else if (typeof temp3 == 'number') { + if (typeof temp3 == 'number') { threaten *= temp3; } }