Merge pull request #1049 from lieren2023/lieren2023-patch-4

fix:统率模式夏侯惇刚烈选别人结果自己弃牌或伤害
This commit is contained in:
Spmario233 2024-03-09 19:16:54 +08:00 committed by GitHub
commit 303752933f
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);