fix:统率模式夏侯惇刚烈选别人结果自己弃牌或伤害

This commit is contained in:
lieren2023 2024-03-09 19:15:23 +08:00 committed by GitHub
parent 5776a6b1fe
commit 0e4399f984
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -435,7 +435,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
judgeEvent.judge2=result=>result.bool;
const {result:{judge}}=await judgeEvent;
if(judge<2) return;
const {result:{bool:chooseToDiscardResultBool}}=await player.chooseToDiscard(2).set('ai',card=>{
const {result:{bool:chooseToDiscardResultBool}}=await event.target.chooseToDiscard(2).set('ai',card=>{
if(card.name=='tao') return -10;
if(card.name=='jiu'&&_status.event.player.hp==1) return -10;
return get.unuseful(card)+2.5*(5-get.owner(card).hp);