柏灵筠bug修复
This commit is contained in:
parent
8deef491ad
commit
78a2ea941f
|
@ -213,7 +213,10 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
frequent:true,
|
||||
async content(event,trigger,player){
|
||||
let cards=get.cards(3);
|
||||
const {result:{bool,links}}=await player.chooseButton(['灵慧:是否使用其中的一张牌并随机获得其中一张剩余牌?',cards]).set('ai',button=>{
|
||||
await game.cardsGotoOrdering(cards);
|
||||
const {result:{bool,links}}=await player.chooseButton(['灵慧:是否使用其中的一张牌并随机获得其中一张剩余牌?',cards]).set('filterButton',button=>{
|
||||
return get.player().hasUseTarget(button.link);
|
||||
}).set('ai',button=>{
|
||||
return get.event('player').getUseValue(button.link);
|
||||
});
|
||||
if(bool){
|
||||
|
@ -222,14 +225,17 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
player.$gain2(card,false);
|
||||
await game.asyncDelayx();
|
||||
await player.chooseUseTarget(true,card,false);
|
||||
if(cards.length) await player.gain(cards.randomGet(),'gain2');
|
||||
}
|
||||
if(cards.length){
|
||||
for(let i=cards.length-1;i--;i>=0){
|
||||
ui.cardPile.insertBefore(cards[i],ui.cardPile.firstChild);
|
||||
cards=cards.filterInD();
|
||||
if(cards.length){
|
||||
const cardx=cards.randomRemove();
|
||||
await player.gain(cardx,'gain2');
|
||||
}
|
||||
}
|
||||
game.updateRoundNumber();
|
||||
if(cards.length){
|
||||
cards.reverse();
|
||||
game.cardsGotoPile(cards.filterInD(),'insert');
|
||||
game.log(player,'将',get.cnNumber(cards.length),'张牌置于了牌堆顶');
|
||||
}
|
||||
},
|
||||
},
|
||||
dcxiace:{
|
||||
|
@ -246,6 +252,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
}));
|
||||
return bool1||bool2;
|
||||
},
|
||||
direct:true,
|
||||
async content(event,trigger,player){
|
||||
if(trigger.player==player&&!player.hasHistory('custom',evt=>evt.dcxiace=='player')&&game.hasPlayer(target=>target!=player&&!target.hasSkill('fengyin'))){
|
||||
const {result:{bool,targets}}=await player.chooseTarget((card,player,target)=>{
|
||||
|
@ -296,6 +303,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
return lib.skill.luanfeng.check(event,player);
|
||||
},
|
||||
logTarget:'player',
|
||||
skillAnimation:true,
|
||||
animationColor:'thunder',
|
||||
async content(event,trigger,player){
|
||||
player.awakenSkill('dcyuxin');
|
||||
trigger.player.recover((trigger.player==player?1:player.getHp())-trigger.player.hp);
|
||||
|
|
Loading…
Reference in New Issue