From 1a1accd7a9f925b25d55407e0895108bdabae295 Mon Sep 17 00:00:00 2001 From: Spmario233 Date: Fri, 16 Feb 2024 23:48:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=80=E8=83=BD=E5=86=99=E6=B3=95=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=EF=BC=8CBugfix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/extra.js | 2 +- character/huicui.js | 6 +++--- character/jsrg.js | 2 +- character/offline.js | 6 +++--- character/shenhua.js | 2 +- character/sp.js | 2 +- character/sp2.js | 5 ++--- character/tw.js | 2 +- character/yingbian.js | 3 +-- mode/guozhan.js | 19 ++++++++----------- noname/library/element/player.js | 11 ++++++----- 11 files changed, 28 insertions(+), 32 deletions(-) diff --git a/character/extra.js b/character/extra.js index 31f1e8275..398134e12 100755 --- a/character/extra.js +++ b/character/extra.js @@ -5543,7 +5543,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }, content(){ player.removeMark('baonu',2); - player.addTempSkill('wushuang'); + player.addTempSkills('wushuang'); player.popup('无双'); game.log(player,'获得了技能','#g【无双】'); target.addTempSkill('ol_wuqian_targeted'); diff --git a/character/huicui.js b/character/huicui.js index f521de96d..b51764139 100644 --- a/character/huicui.js +++ b/character/huicui.js @@ -6439,7 +6439,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ var pos=lib.skill.midu_backup.equip; if(pos<=0) player.enableJudge(); else player.enableEquip(pos); - player.addTempSkill('rehuomo',{player:'phaseBegin'}); + player.addTempSkills('rehuomo',{player:'phaseBegin'}); }, } } @@ -7151,7 +7151,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ var info=get.info(i); return info&&!get.is.locked(i)&&!info.limited&&!info.juexingji&&!info.zhuSkill&&!info.charlotte; }); - target.addAdditionalSkill('dcjiezhen_blocker','bazhen'); + target.addAdditionalSkills('dcjiezhen_blocker','bazhen'); target.addSkill('dcjiezhen_blocker'); target.markAuto('dcjiezhen_blocker',skills); player.addSkill('dcjiezhen_clear'); @@ -7297,7 +7297,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ player.awakenSkill('dczecai'); var target=result.targets[0]; player.logSkill('dczecai',target); - target.addAdditionalSkill('dczecai_effect','rejizhi'); + target.addAdditionalSkills('dczecai_effect','rejizhi'); target.addTempSkill('dczecai_effect','roundStart'); if(target==event.target){ var evt=trigger._trigger; diff --git a/character/jsrg.js b/character/jsrg.js index abf0b210a..5b2b293d5 100644 --- a/character/jsrg.js +++ b/character/jsrg.js @@ -2029,7 +2029,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ return lib.filter.canBeDiscarded(card,player,target); },'e')){ player.discardPlayerCard(target,'e',true); - target.addAdditionalSkill('jsrgqingzi_'+player.playerid,'xinshensu'); + target.addAdditionalSkills('jsrgqingzi_'+player.playerid,'xinshensu'); player.markAuto('jsrgqingzi_clear',[target]); } event.num++; diff --git a/character/offline.js b/character/offline.js index c0522a719..4cea6a97f 100644 --- a/character/offline.js +++ b/character/offline.js @@ -5914,7 +5914,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ delete player._mouduan_mark; } },player); - player.removeAdditionalSkill('mouduan'); + player.removeAdditionalSkills('mouduan'); }, trigger:{player:'loseEnd'}, forced:true, @@ -5930,7 +5930,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ player._mouduan_mark.firstChild.innerHTML='文'; player._mouduan_mark.info.content='拥有技能【英姿】、【克己】'; },player); - player.addAdditionalSkill('mouduan',['yingzi','keji']); + player.addAdditionalSkills('mouduan',['yingzi','keji']); }, group:'mouduan2' }, @@ -5956,7 +5956,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ player._mouduan_mark.firstChild.innerHTML='武'; player._mouduan_mark.info.content='拥有技能【激昂】、【谦逊】'; },player); - player.addAdditionalSkill('mouduan',['jiang','qianxun']); + player.addAdditionalSkills('mouduan',['jiang','qianxun']); } } }, diff --git a/character/shenhua.js b/character/shenhua.js index 772234fcc..28fd4aefe 100755 --- a/character/shenhua.js +++ b/character/shenhua.js @@ -1137,7 +1137,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ player.addTempSkill('drlt_jueyan2'); break; case 'equip5': - player.addTempSkill('rejizhi'); + player.addTempSkills('rejizhi'); break; } }, diff --git a/character/sp.js b/character/sp.js index b766b3c81..e4400b268 100755 --- a/character/sp.js +++ b/character/sp.js @@ -14530,7 +14530,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ return -1; }; 'step 1' - if(result.bool) trigger.player.addTempSkill('yuxu'); + if(result.bool) trigger.player.addTempSkills('yuxu'); }, ai:{ expose:0.25, diff --git a/character/sp2.js b/character/sp2.js index e7f24f227..c2c617482 100644 --- a/character/sp2.js +++ b/character/sp2.js @@ -4239,9 +4239,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){ var skill=result.control; if(skill!='cancel2'){ event.skills.remove(skill); - target.addAdditionalSkill('jinghe_'+player.playerid,skill); + target.addAdditionalSkills('jinghe_'+player.playerid,skill); target.popup(skill); - game.log(target,'获得了技能','#g【'+get.translation(skill)+'】'); } if(event.num { return '#g【' + get.translation(i) + '】';