From 32c56beae424cd398c9d1ae369800b074a2e3140 Mon Sep 17 00:00:00 2001 From: 157 <144450955+PZ157@users.noreply.github.com> Date: Fri, 6 Oct 2023 12:27:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E3=80=90=E8=B0=97=E9=80=86?= =?UTF-8?q?=E3=80=91ai?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- character/sp2.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/character/sp2.js b/character/sp2.js index cf89bfea1..775c71e93 100644 --- a/character/sp2.js +++ b/character/sp2.js @@ -2814,9 +2814,9 @@ game.import('character',function(lib,game,ui,get,ai,_status){ filterCard:true, selectCard:[1,Infinity], check:function(card){ - var player=_status.event.player; - if(ui.selected.cards.length<=Math.max(1,player.needsToDiscard(),player.countCards('h')-4)) return 6-get.value(card); - return 4-get.value(card); + let player=_status.event.player,num=player.hasSkill('nifu')?15:8; + if(ui.selected.cards.length<=Math.max(1,player.needsToDiscard(),player.countCards('h')-4)) return num-get.value(card); + return num/2-get.value(card); }, position:'h', discard:false, @@ -2870,7 +2870,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ viewAs:{name:'juedou'}, position:'h', filterTarget:lib.filter.targetEnabled, - check:(card)=>get.name(card)=='sha'?7:5.5-get.value(card), + check:(card)=>get.name(card)=='sha'?0:5.5-get.value(card); log:false, precontent:function(){ delete event.result.skill;