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