修复【三顾】ai弹窗

This commit is contained in:
157 2024-01-24 08:59:11 +08:00
parent d6e226e3ab
commit 059378c064
1 changed files with 2 additions and 2 deletions

View File

@ -1182,7 +1182,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
getv=(name,player)=>{ getv=(name,player)=>{
let v=trigger.getTempCache('sangu',player.id+name); let v=trigger.getTempCache('sangu',player.id+name);
if(typeof v==='number') return v; if(typeof v==='number') return v;
v=player.getUseValue({name:name,storage:{sangu:true}},arg); v=player.getUseValue({name:name,storage:{sangu:true}});
trigger.putTempCache('sangu',player.id+name,v); trigger.putTempCache('sangu',player.id+name,v);
return v; return v;
}; };
@ -8094,7 +8094,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
const chooseToPutCard = async function(target){ const chooseToPutCard = async function(target){
await target.draw(); await target.draw();
if(target.countCards('he')){ if(target.countCards('he')){
const {result:{cards,bool}} = const {result:{cards,bool}} =
await target.chooseCard('选择一张牌置于牌堆顶','he',true); await target.chooseCard('选择一张牌置于牌堆顶','he',true);
if(bool){ if(bool){
await target.lose(cards,ui.cardPile,'insert'); await target.lose(cards,ui.cardPile,'insert');