optimize oldaili

This commit is contained in:
copcap 2023-05-31 16:34:21 +08:00
parent 8563f1f78a
commit 42adff1013
1 changed files with 20 additions and 0 deletions

View File

@ -803,6 +803,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
})%2==0; })%2==0;
}, },
group:'oldaili_record', group:'oldaili_record',
check:function(event,player){
if(get.distance(event.player,player,'absolute')==1&&!player.isTurnedOver()) return false;
return true;
},
content:function(){ content:function(){
player.turnOver(); player.turnOver();
player.draw(3,'visible').gaintag=['oldaili_tag']; player.draw(3,'visible').gaintag=['oldaili_tag'];
@ -834,6 +838,22 @@ game.import('character',function(lib,game,ui,get,ai,_status){
game.broadcastAll(function(cards){ game.broadcastAll(function(cards){
cards.forEach(card=>card.addGaintag('oldaili_tag')); cards.forEach(card=>card.addGaintag('oldaili_tag'));
},trigger.cards); },trigger.cards);
player.addSkill('oldaili_tag');
}
},
tag:{
charlotte:true,
intro:{
markcount:function(storage,player){
return player.countCards('h',card=>card.addGaintag('oldaili_tag'));
},
mark:function(dialog,content,player){
var cards=player.getCards('h',card=>card.addGaintag('oldaili_tag'));
if(cards.length){
dialog.addAuto(cards);
}
else return '无展示牌';
},
} }
} }
} }