From 45471a880cf0965e9a423801b12c6cb19bd77d55 Mon Sep 17 00:00:00 2001 From: mengxinzxz <139629761+mengxinzxz@users.noreply.github.com> Date: Tue, 29 Aug 2023 12:09:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=AE=B5=E9=A2=8E=E5=B0=8F=E4=BC=98=E5=8C=96+?= =?UTF-8?q?=E5=91=A8=E7=BE=A4=E5=B0=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 段颎【扫谷②】优化ai操作(只能扔一张牌的时候不会扔出两张牌) 周群【天候】令别人获得天气时添加显示天气效果 --- character/sp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/character/sp.js b/character/sp.js index 850c3c839..69287cc32 100755 --- a/character/sp.js +++ b/character/sp.js @@ -872,7 +872,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ target.chooseToDiscard('he','扫谷:弃置两张牌(不能弃置'+text+'花色的牌),然后使用其中的【杀】',function(card,player){ var list=_status.event.list; return !list.some(cardx=>get.suit(cardx,false)==get.suit(card,player)); - },2,true).set('ai',function(card){ + },Math.min(cards.length,2),true).set('ai',function(card){ var player=_status.event.player; if(card.name=='sha'&&player.hasValueTarget(card)) return 10; return -get.value(card); @@ -952,7 +952,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ if(!lib.skill.oltianhou.derivation.contains(skill)) event.finish(); else{ event.weather_skill=skill; - player.chooseTarget(true,'令一名角色获得技能【'+get.translation(skill)+'】').set('ai',function(target){ + player.chooseTarget(true,'令一名角色获得技能【'+get.translation(skill)+'】',get.translation(skill+'_info')).set('ai',function(target){ return get.attitude(_status.event.player,target); }); }