族荀攸【百出】限制无色牌组合不能被记录
This commit is contained in:
parent
e5a930ae64
commit
ceaaa70185
|
@ -40,6 +40,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
trigger:{player:'useCardAfter'},
|
trigger:{player:'useCardAfter'},
|
||||||
filter:function(event,player){
|
filter:function(event,player){
|
||||||
if(player.getStorage('clanbaichu').contains(event.card.name)) return true;
|
if(player.getStorage('clanbaichu').contains(event.card.name)) return true;
|
||||||
|
if(get.suit(event.card)=='none') return false;
|
||||||
var str=(get.suit(event.card)+'、'+get.type2(event.card));
|
var str=(get.suit(event.card)+'、'+get.type2(event.card));
|
||||||
if(!player.getStorage('clanbaichu').contains(str)) return true;
|
if(!player.getStorage('clanbaichu').contains(str)) return true;
|
||||||
return !player.hasSkill('qice');
|
return !player.hasSkill('qice');
|
||||||
|
@ -47,31 +48,34 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
forced:true,
|
forced:true,
|
||||||
content:function(){
|
content:function(){
|
||||||
'step 0'
|
'step 0'
|
||||||
var str=(get.suit(trigger.card)+'+'+get.type2(trigger.card));
|
|
||||||
if(player.getStorage('clanbaichu').contains(trigger.card.name)){
|
if(player.getStorage('clanbaichu').contains(trigger.card.name)){
|
||||||
event.draw=true;
|
event.draw=true;
|
||||||
}
|
}
|
||||||
if(player.getStorage('clanbaichu').contains(str)){
|
if(get.suit(trigger.card)!='none'){
|
||||||
if(!player.hasSkill('qice')){
|
var str=(get.suit(trigger.card)+'+'+get.type2(trigger.card));
|
||||||
player.addTempSkill('qice','roundStart');
|
if(player.getStorage('clanbaichu').contains(str)){
|
||||||
player.popup('奇策');
|
if(!player.hasSkill('qice')){
|
||||||
game.log(player,'获得了技能','#g【奇策】');
|
player.addTempSkill('qice','roundStart');
|
||||||
|
player.popup('奇策');
|
||||||
|
game.log(player,'获得了技能','#g【奇策】');
|
||||||
|
}
|
||||||
|
event.goto(2);
|
||||||
}
|
}
|
||||||
event.goto(2);
|
else{
|
||||||
}
|
player.markAuto('clanbaichu',[str]);
|
||||||
else{
|
var list=lib.inpile.filter(name=>get.type(name)=='trick'&&!player.getStorage('clanbaichu').contains(name));
|
||||||
player.markAuto('clanbaichu',[str]);
|
if(list.length){
|
||||||
var list=lib.inpile.filter(name=>get.type(name)=='trick'&&!player.getStorage('clanbaichu').contains(name));
|
var dialog=['请选择【百出】记录的普通锦囊牌牌名',[list,'vcard']];
|
||||||
if(list.length){
|
player.chooseButton(dialog,true).set('ai',function(button){
|
||||||
var dialog=['请选择【百出】记录的普通锦囊牌牌名',[list,'vcard']];
|
var player=_status.event.player,name=button.link[2];
|
||||||
player.chooseButton(dialog,true).set('ai',function(button){
|
if(name=='wuxie') return 114514;
|
||||||
var player=_status.event.player,name=button.link[2];
|
return get.effect(player,{name:name},player,player)*(1+player.countCards('hs',name));
|
||||||
if(name=='wuxie') return 114514;
|
});
|
||||||
return get.effect(player,{name:name},player,player)*(1+player.countCards('hs',name));
|
}
|
||||||
});
|
else event.goto(2);
|
||||||
}
|
}
|
||||||
else event.goto(2);
|
|
||||||
}
|
}
|
||||||
|
else event.goto(2);
|
||||||
'step 1'
|
'step 1'
|
||||||
if(result.bool){
|
if(result.bool){
|
||||||
var name=result.links[0][2];
|
var name=result.links[0][2];
|
||||||
|
|
Loading…
Reference in New Issue