From 073ca79f11b2287f358f64c207f3d26987bc4fce Mon Sep 17 00:00:00 2001 From: Spmario233 Date: Tue, 13 Aug 2019 12:48:24 +0800 Subject: [PATCH] v1.9.91.5(Part 3) --- mode/guozhan.js | 29 ++++++++++++++++++++--------- 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/mode/guozhan.js b/mode/guozhan.js index 0f7259837..79eee3357 100644 --- a/mode/guozhan.js +++ b/mode/guozhan.js @@ -827,9 +827,9 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }); 'step 2' if(result.index==0) target.carryOutJunling(player,event.junling,targets); - else if(target!=player) { + else if(target!=player&&target.countCards('h')) { event.num=target.countCards('h'); - player.gain(target.get('h'),target); + player.gain(target.getCard('h'),target); target.$give(event.num,player); player.chooseCard('交给'+get.translation(target)+get.cnNumber(event.num)+'张牌','he',event.num,true).set('ai',function(card){ return -get.value(card); @@ -5846,8 +5846,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ gzduanchang:{ audio:'duanchang', trigger:{player:'dieBegin'}, - popup:true, - silent:true, + forced:true, filter:function(event,player){ return event.source&&event.source.isIn()&&event.source!=player&& (event.source.hasMainCharacter()||event.source.hasViceCharacter()); @@ -6094,9 +6093,21 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ audio:'zhiheng', selectCard:function(){ var player=_status.event.player; - if(player.hasSkill('dinglanyemingzhu_skill')) return [1,Infinity]; - return [1,player.maxHp]; + var range1=[1,player.maxHp]; + if(player.hasSkill('dinglanyemingzhu_skill')){ + for(var i=0;i