This commit is contained in:
parent
1d7c7bbb7f
commit
3f040275db
18
game/game.js
18
game/game.js
|
@ -8845,7 +8845,7 @@
|
||||||
event.fakeforce=false;
|
event.fakeforce=false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(event.player.isUnderControl()){
|
if(event.player.isUnderControl()||(event.player.handcardsVisible&&event.player!=game.me)){
|
||||||
event.result={
|
event.result={
|
||||||
bool:false
|
bool:false
|
||||||
}
|
}
|
||||||
|
@ -10023,7 +10023,7 @@
|
||||||
event.dialog.add('手牌');
|
event.dialog.add('手牌');
|
||||||
var hs=target.getCards('h');
|
var hs=target.getCards('h');
|
||||||
hs.randomSort();
|
hs.randomSort();
|
||||||
if(event.visible||target.isUnderControl(true)){
|
if(event.visible||target.isUnderControl(true)||target.handcardsVisible){
|
||||||
event.dialog.add(hs);
|
event.dialog.add(hs);
|
||||||
directh=false;
|
directh=false;
|
||||||
}
|
}
|
||||||
|
@ -10117,7 +10117,7 @@
|
||||||
event.dialog.add('手牌');
|
event.dialog.add('手牌');
|
||||||
var hs=target.getCards('h');
|
var hs=target.getCards('h');
|
||||||
hs.randomSort();
|
hs.randomSort();
|
||||||
if(event.visible||target.isUnderControl(true)){
|
if(event.visible||target.isUnderControl(true)||target.handcardsVisible){
|
||||||
event.dialog.add(hs);
|
event.dialog.add(hs);
|
||||||
directh=false;
|
directh=false;
|
||||||
}
|
}
|
||||||
|
@ -10228,7 +10228,7 @@
|
||||||
event.dialog.add('手牌');
|
event.dialog.add('手牌');
|
||||||
var hs=target.getCards('h');
|
var hs=target.getCards('h');
|
||||||
hs.randomSort();
|
hs.randomSort();
|
||||||
if(event.visible||target.isUnderControl(true)){
|
if(event.visible||target.isUnderControl(true)||target.handcardsVisible){
|
||||||
event.dialog.add(hs);
|
event.dialog.add(hs);
|
||||||
directh=false;
|
directh=false;
|
||||||
}
|
}
|
||||||
|
@ -16504,7 +16504,9 @@
|
||||||
$giveAuto:function(card,player){
|
$giveAuto:function(card,player){
|
||||||
if(Array.isArray(card)&&card.length==0) return;
|
if(Array.isArray(card)&&card.length==0) return;
|
||||||
var args=Array.from(arguments);
|
var args=Array.from(arguments);
|
||||||
if(_status.connectMode||(!this.isUnderControl(true)&&!player.isUnderControl(true))){
|
if(_status.connectMode||(
|
||||||
|
!this.isUnderControl(true)&&!player.isUnderControl(true)&&
|
||||||
|
!this.handcardsVisible&&!player.handcardsVisible)){
|
||||||
if(Array.isArray(card)){
|
if(Array.isArray(card)){
|
||||||
card=card.length;
|
card=card.length;
|
||||||
}
|
}
|
||||||
|
@ -18350,7 +18352,7 @@
|
||||||
}
|
}
|
||||||
if(!_status.connectMode&&lib.config.wuxie_self&&event.getParent().state){
|
if(!_status.connectMode&&lib.config.wuxie_self&&event.getParent().state){
|
||||||
var tw=event.getTrigger().parent;
|
var tw=event.getTrigger().parent;
|
||||||
if(tw.player.isUnderControl(true)&&tw.targets&&tw.targets.length==1&&!tw.noai){
|
if((tw.player.isUnderControl(true)||tw.player.handcardsVisible)&&tw.targets&&tw.targets.length==1&&!tw.noai){
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -18441,7 +18443,7 @@
|
||||||
zhuSkill:{},
|
zhuSkill:{},
|
||||||
unequip:{ai:{unequip:true}},
|
unequip:{ai:{unequip:true}},
|
||||||
autoswap:{
|
autoswap:{
|
||||||
trigger:{player:['phaseBegin','chooseToUseBegin','chooseToRespondBegin','chooseToDiscardBegin','chooseToCompareBegin',
|
trigger:{player:['chooseToUseBegin','chooseToRespondBegin','chooseToDiscardBegin','chooseToCompareBegin',
|
||||||
'chooseButtonBegin','chooseCardBegin','chooseTargetBegin','chooseCardTargetBegin','chooseControlBegin',
|
'chooseButtonBegin','chooseCardBegin','chooseTargetBegin','chooseCardTargetBegin','chooseControlBegin',
|
||||||
'chooseBoolBegin','choosePlayerCardBegin','discardPlayerCardBegin','gainPlayerCardBegin']},
|
'chooseBoolBegin','choosePlayerCardBegin','discardPlayerCardBegin','gainPlayerCardBegin']},
|
||||||
forced:true,
|
forced:true,
|
||||||
|
@ -18458,7 +18460,7 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
autophase:{
|
autophase:{
|
||||||
trigger:{player:['phaseBegin','chooseToUseBegin','chooseToRespondBegin','chooseToDiscardBegin','chooseToCompareBegin',
|
trigger:{player:['chooseToUseBegin','chooseToRespondBegin','chooseToDiscardBegin','chooseToCompareBegin',
|
||||||
'chooseButtonBegin','chooseCardBegin','chooseTargetBegin','chooseCardTargetBegin','chooseControlBegin',
|
'chooseButtonBegin','chooseCardBegin','chooseTargetBegin','chooseCardTargetBegin','chooseControlBegin',
|
||||||
'chooseBoolBegin','choosePlayerCardBegin','discardPlayerCardBegin','gainPlayerCardBegin']},
|
'chooseBoolBegin','choosePlayerCardBegin','discardPlayerCardBegin','gainPlayerCardBegin']},
|
||||||
forced:true,
|
forced:true,
|
||||||
|
|
|
@ -1053,9 +1053,9 @@ mode.versus={
|
||||||
}
|
}
|
||||||
ui.autophase=ui.create.system('自动切换',function(){
|
ui.autophase=ui.create.system('自动切换',function(){
|
||||||
this.classList.toggle('glow');
|
this.classList.toggle('glow');
|
||||||
game.save('autophase_four',this.classList.contains('glow'));
|
game.save('autophase_four',!this.classList.contains('glow'));
|
||||||
},true);
|
},true);
|
||||||
if(lib.storage.autophase_four){
|
if(!lib.storage.autophase_four){
|
||||||
ui.autophase.classList.add('glow');
|
ui.autophase.classList.add('glow');
|
||||||
}
|
}
|
||||||
_status.autophasefilter=function(){
|
_status.autophasefilter=function(){
|
||||||
|
|
Loading…
Reference in New Issue