fix:统率模式夏侯惇刚烈选别人结果自己弃牌或伤害
This commit is contained in:
parent
5776a6b1fe
commit
0e4399f984
|
@ -435,7 +435,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){
|
||||||
judgeEvent.judge2=result=>result.bool;
|
judgeEvent.judge2=result=>result.bool;
|
||||||
const {result:{judge}}=await judgeEvent;
|
const {result:{judge}}=await judgeEvent;
|
||||||
if(judge<2) return;
|
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=='tao') return -10;
|
||||||
if(card.name=='jiu'&&_status.event.player.hp==1) return -10;
|
if(card.name=='jiu'&&_status.event.player.hp==1) return -10;
|
||||||
return get.unuseful(card)+2.5*(5-get.owner(card).hp);
|
return get.unuseful(card)+2.5*(5-get.owner(card).hp);
|
||||||
|
|
Loading…
Reference in New Issue