梦诸葛亮出师bug修复

This commit is contained in:
copcap 2024-01-19 23:23:55 +08:00
parent 9baa772dde
commit b53950506b
No known key found for this signature in database
GPG Key ID: 30E7AB6699451AEE
1 changed files with 2 additions and 2 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;
if(!zhu||!zhu.isZhu2()||!zhu.countCards('h')) return false;
return !player.isZhu2();
},
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){