direct→cost
This commit is contained in:
parent
f8da2abccb
commit
36321e5bfd
|
@ -313,9 +313,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
},'he');
|
||||
});
|
||||
},
|
||||
direct:true,
|
||||
async content(event,trigger,player){
|
||||
let {result:{bool,targets}}=await player.chooseTarget([1,3],(_,player,target)=>{
|
||||
async cost(event,trigger,player){
|
||||
let {result}=await player.chooseTarget([1,3],(_,player,target)=>{
|
||||
return target!=player&&target.hasCard(card=>{
|
||||
if(get.position(card)=='h') return true;
|
||||
return target.canUse(get.autoViewAs({name:'juedou'},[card]),player,false);
|
||||
|
@ -330,8 +329,11 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
});
|
||||
return (Math.min(num,3)+1)*get.effect(player,{name:'draw'},player,player)+get.effect(target,{name:'guohe_copy2'},target,player)+get.effect(player,{name:'juedou'},target,player);
|
||||
}).set('prompt2','选择至多三名其他角色并摸选择角色数+1的牌,然后这些角色须将一张牌当作【决斗】对你使用');
|
||||
if(bool){
|
||||
targets=targets.sortBySeat();
|
||||
if(result.bool) result.targets.sortBySeat();
|
||||
event.result=result;
|
||||
},
|
||||
async content(event,trigger,player){
|
||||
const targets=event.targets;
|
||||
player.logSkill('twduwang_effect',targets);
|
||||
await player.draw(targets.length+1);
|
||||
for(const target of targets){
|
||||
|
@ -357,7 +359,6 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
|||
.set('sourcex',player)
|
||||
.set('addCount',false);
|
||||
}
|
||||
}
|
||||
},
|
||||
},
|
||||
backup:{
|
||||
|
|
Loading…
Reference in New Issue