修改获得牌时的知情逻辑
This commit is contained in:
parent
deb7757b88
commit
9acf92d2ac
12
game/game.js
12
game/game.js
|
@ -19260,15 +19260,11 @@
|
||||||
var next=owner.lose(map[i][0],ui.special).set('type','gain').set('forceDie',true).set('getlx',false);
|
var next=owner.lose(map[i][0],ui.special).set('type','gain').set('forceDie',true).set('getlx',false);
|
||||||
if(event.visible==true){
|
if(event.visible==true){
|
||||||
next.visible=true;
|
next.visible=true;
|
||||||
game.addCardKnower(map[i][0],'everyone');
|
|
||||||
}else{
|
|
||||||
game.addCardKnower(map[i][1],owner);
|
|
||||||
game.addCardKnower(map[i][2],'everyone');
|
|
||||||
}
|
}
|
||||||
event.relatedLose=next;
|
event.relatedLose=next;
|
||||||
}
|
if(event.cardKnower){
|
||||||
if(event.cardKnower){
|
next.set('cardKnower',event.cardKnower);
|
||||||
game.addCardKnower(cards,event.cardKnower);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
|
@ -19286,6 +19282,8 @@
|
||||||
var hs=source.getCards('hejsx');
|
var hs=source.getCards('hejsx');
|
||||||
if(hs.contains(cards[i])){
|
if(hs.contains(cards[i])){
|
||||||
cards.splice(i--,1);
|
cards.splice(i--,1);
|
||||||
|
}else{
|
||||||
|
cards[i].addKnower(event.visible?'everyone':source);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue