族荀攸【百出】限制无色牌组合不能被记录
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,10 +48,11 @@ 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(get.suit(trigger.card)!='none'){
|
||||||
|
var str=(get.suit(trigger.card)+'+'+get.type2(trigger.card));
|
||||||
if(player.getStorage('clanbaichu').contains(str)){
|
if(player.getStorage('clanbaichu').contains(str)){
|
||||||
if(!player.hasSkill('qice')){
|
if(!player.hasSkill('qice')){
|
||||||
player.addTempSkill('qice','roundStart');
|
player.addTempSkill('qice','roundStart');
|
||||||
|
@ -72,6 +74,8 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
}
|
}
|
||||||
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