From 8fe112349752956a6b3cbc68f5947453d4d75b62 Mon Sep 17 00:00:00 2001 From: libccy Date: Wed, 7 Jun 2017 15:36:48 +0800 Subject: [PATCH] 2 --- character/diy.js | 2 +- character/gwent.js | 45 ++++++++++++++++----------------------------- 2 files changed, 17 insertions(+), 30 deletions(-) diff --git a/character/diy.js b/character/diy.js index 814a68421..4f71a529d 100644 --- a/character/diy.js +++ b/character/diy.js @@ -868,7 +868,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ filter:function(event,player){ if(event.skill!='luweiyan') return false; for(var i=0;i=player.storage.hunmo1; - } + return true; }, + selectTarget:[1,Infinity], content:function(){ var nh=target.countCards('h'); if(nh<2){ @@ -465,16 +463,19 @@ game.import('character',function(lib,game,ui,get,ai,_status){ else if(nh>2){ target.chooseToDiscard('h',true); } - if(target!=player){ - target.addTempSkill('hunmo2'); - player.storage.hunmo2++; - } - else{ - player.storage.hunmo1++; + }, + contentAfter:function(){ + var nh=player.countCards('h'); + if(nh