From 99b398f2e380fb24879b4e41ca5af2b78a19ce69 Mon Sep 17 00:00:00 2001 From: mengxinzxz <2223529500@qq.com> Date: Wed, 27 Mar 2024 23:09:54 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E3=80=90=E5=8F=9B=E5=BC=91?= =?UTF-8?q?=E3=80=91storage=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/sp2.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/character/sp2.js b/character/sp2.js index 8be60fa17..9416804b1 100644 --- a/character/sp2.js +++ b/character/sp2.js @@ -6738,7 +6738,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }, content:function(){ trigger.num++; - if(trigger.source.name.indexOf('lvbu')!=-1) trigger.source.storage.panshi='吾堂堂丈夫,安肯为汝子乎!';// 彩蛋 + if(['name','name1','name2'].some(name=>{ + if(!player[name]||!get.character(player[name])||typeof get.translation(player[name])!='string') return false; + return player[name].includes('lvbu')&&get.translation(player[name]).includes('吕布'); + })) player.chat('吾堂堂丈夫,安肯为汝子乎!'); var evt=event.getParent('phaseUse'); if(evt&&evt.player==player) evt.skipped=true; },