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