段颎小优化+周群小优化

段颎【扫谷②】优化ai操作(只能扔一张牌的时候不会扔出两张牌)
周群【天候】令别人获得天气时添加显示天气效果
This commit is contained in:
mengxinzxz 2023-08-29 12:09:51 +08:00 committed by GitHub
parent 86bbbbf1da
commit 45471a880c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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);
});
}