修复国战田豫【震袭】选择选项一却可以执行选项二的bug
This commit is contained in:
parent
2d4979fed2
commit
80bf95bf46
|
@ -1939,9 +1939,9 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
else choiceList[0]='<span style="opacity:0.5">'+choiceList[0]+'</span>';
|
else choiceList[0]='<span style="opacity:0.5">'+choiceList[0]+'</span>';
|
||||||
if(player.countCards('he',function(card){
|
if(player.countCards('he',function(card){
|
||||||
return get.suit(card)=='diamond'&&get.type2(card)!='trick'&&player.canUse(get.autoViewAs({name:'lebu'},[card]),target);
|
return get.suit(card)=='diamond'&&get.type2(card)!='trick'&&player.canUse(get.autoViewAs({name:'lebu'},[card]),target);
|
||||||
})||(player.countCards('he',function(card){
|
})||player.countCards('he',function(card){
|
||||||
return get.suit(card)=='club'&&get.type2(card)!='trick'&&player.canUse(get.autoViewAs({name:'bingliang'},[card]),target);
|
return get.suit(card)=='club'&&get.type2(card)!='trick'&&player.canUse(get.autoViewAs({name:'bingliang'},[card]),target);
|
||||||
}))) list.push('选项二');
|
})) list.push('选项二');
|
||||||
else choiceList[1]='<span style="opacity:0.5">'+choiceList[1]+'</span>';
|
else choiceList[1]='<span style="opacity:0.5">'+choiceList[1]+'</span>';
|
||||||
if(target.isUnseen(2)&&!player.isUnseen(2)) list.push('背水!');
|
if(target.isUnseen(2)&&!player.isUnseen(2)) list.push('背水!');
|
||||||
else choiceList[2]='<span style="opacity:0.5">'+choiceList[2]+'</span>';
|
else choiceList[2]='<span style="opacity:0.5">'+choiceList[2]+'</span>';
|
||||||
|
@ -1961,10 +1961,9 @@ game.import('mode',function(lib,game,ui,get,ai,_status){
|
||||||
event.choice=result.control;
|
event.choice=result.control;
|
||||||
if(event.choice!='选项二'&&target.countDiscardableCards(player,'he')) player.discardPlayerCard(target,'he',true);
|
if(event.choice!='选项二'&&target.countDiscardableCards(player,'he')) player.discardPlayerCard(target,'he',true);
|
||||||
'step 2'
|
'step 2'
|
||||||
if(event.choice!='选项一'&&!player.isUnseen(2)&&target.isUnseen(2)&&
|
if(event.choice!='选项一'&&(player.hasCard(function(card){
|
||||||
player.hasCard(function(card){
|
|
||||||
return get.suit(card)=='diamond'&&get.type2(card)!='trick'&&player.canUse(get.autoViewAs({name:'lebu'},[card]),target);
|
return get.suit(card)=='diamond'&&get.type2(card)!='trick'&&player.canUse(get.autoViewAs({name:'lebu'},[card]),target);
|
||||||
},'he')||(player.hasCard(function(card){
|
},'he')||player.hasCard(function(card){
|
||||||
return get.suit(card)=='club'&&get.type2(card)!='trick'&&player.canUse(get.autoViewAs({name:'bingliang'},[card]),target,false);
|
return get.suit(card)=='club'&&get.type2(card)!='trick'&&player.canUse(get.autoViewAs({name:'bingliang'},[card]),target,false);
|
||||||
},'he'))){
|
},'he'))){
|
||||||
var next=game.createEvent('gzzhenxi_use');
|
var next=game.createEvent('gzzhenxi_use');
|
||||||
|
|
Loading…
Reference in New Issue