This commit is contained in:
libccy 2018-01-02 00:54:58 +08:00
parent f95f9f6074
commit 6df82f44dc
1 changed files with 13 additions and 10 deletions

View File

@ -123,16 +123,19 @@ game.import('character',function(lib,game,ui,get,ai,_status){
var num=player.storage.nsqinxue.length; var num=player.storage.nsqinxue.length;
player.chooseToDiscard('白衣:请弃置'+get.cnNumber(num)+'张牌','he',true,num); player.chooseToDiscard('白衣:请弃置'+get.cnNumber(num)+'张牌','he',true,num);
'step 1' 'step 1'
if(result.bool&&result.cards.length==3){ if(result.bool&&result.cards.length){
var type=[]; event.goon=true;
for(var i=0;i<result.cards.length;i++){ if(result.cards.length==3){
type.add(get.type(result.cards[i],'trick')); var type=[];
for(var i=0;i<result.cards.length;i++){
type.add(get.type(result.cards[i],'trick'));
}
if(type.length==3&&trigger.getParent().skill!='nsbaiyi'){
event.goon=false;
player.insertPhase();
}
} }
if(type.length==3&&trigger.getParent().skill!='nsbaiyi'){ if(event.goon){
player.insertPhase();
}
else{
event.goon=true;
var cards=get.cards(result.cards.length); var cards=get.cards(result.cards.length);
event.cards=cards; event.cards=cards;
player.chooseCardButton(cards,'获得一张牌',true); player.chooseCardButton(cards,'获得一张牌',true);
@ -183,7 +186,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
group:'nsqinxue_clear', group:'nsqinxue_clear',
subSkill:{ subSkill:{
clear:{ clear:{
trigger:{player:'phaseAfter'}, trigger:{global:'phaseAfter'},
silent:true, silent:true,
content:function(){ content:function(){
player.storage.nsqinxue=[]; player.storage.nsqinxue=[];