Merge pull request #816 from copcap/dev

梦诸葛亮出师bug修复
This commit is contained in:
Spmario233 2024-01-19 23:59:53 +08:00 committed by GitHub
commit 8a21414d80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 3 deletions

View File

@ -284,12 +284,12 @@ game.import('character',function(lib,game,ui,get,ai,_status){
usable:1,
filter(event,player){
const zhu=get.zhu(player);
if(!zhu||!zhu.isZhu2()) return false;
return !player.isZhu2();
if(!zhu||!zhu.isZhu2()||!zhu.countCards('h')) return false;
return !player.isZhu2()&&player.countCards('h');
},
async content(event,trigger,player){
player.chooseToDebate(game.filterPlayer(current=>{
return current==player||current.isZhu2();
return (current==player||current.isZhu2())&&current.countCards('h');
})).set('callback',async event=>{
const result=event.debateResult;
if(result.bool&&result.opinion){