太原王氏【中流】修复

修复【中流】发动条件与实际效果相反的bug
This commit is contained in:
mengxinzxz 2023-08-23 13:04:25 +08:00 committed by GitHub
parent 643c49c752
commit 200bcfe746
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -831,14 +831,13 @@ game.import('character',function(lib,game,ui,get,ai,_status){
if(!event.cards.length) return true;
var cards=[];
game.countPlayer(current=>{
if(!current.hasClan('太原王氏')) return false;
if(!current.hasClan('太原王氏')&&current!=player) return false;
current.getHistory('lose',evt=>{
if(event!=evt.getParent()) return false;
cards.addArray(evt.getl(current).hs);
});
})
if(event.cards.some(card=>!cards.contains(card))) return false;
return true;
});
return !event.cards.some(card=>cards.contains(card));
},
content:function(){
'step 0'