修改知情牌的设置逻辑
This commit is contained in:
parent
9acf92d2ac
commit
d7c845b2c3
|
@ -17968,12 +17968,10 @@
|
||||||
if(!event.chooseonly){
|
if(!event.chooseonly){
|
||||||
if(event.delay!==false){
|
if(event.delay!==false){
|
||||||
var next=player.gain(event.cards,target,event.visibleMove?'give':'giveAuto','bySelf');
|
var next=player.gain(event.cards,target,event.visibleMove?'give':'giveAuto','bySelf');
|
||||||
next.set('cardKnower',event.visibleMove?['everyone']:[target]);
|
|
||||||
event.done=next;
|
event.done=next;
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
var next=player.gain(event.cards,target,'bySelf');
|
var next=player.gain(event.cards,target,'bySelf');
|
||||||
next.set('cardKnower',event.visibleMove?['everyone']:[target]);
|
|
||||||
event.done=next;
|
event.done=next;
|
||||||
target[event.visibleMove?'$give':'$giveAuto'](cards,player);
|
target[event.visibleMove?'$give':'$giveAuto'](cards,player);
|
||||||
if(event.visibleMove) next.visible=true;
|
if(event.visibleMove) next.visible=true;
|
||||||
|
@ -19262,9 +19260,6 @@
|
||||||
next.visible=true;
|
next.visible=true;
|
||||||
}
|
}
|
||||||
event.relatedLose=next;
|
event.relatedLose=next;
|
||||||
if(event.cardKnower){
|
|
||||||
next.set('cardKnower',event.cardKnower);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
|
Loading…
Reference in New Issue