From d16422b69cfdcc85f90d005acca053b0878a415e Mon Sep 17 00:00:00 2001 From: libccy Date: Wed, 8 Feb 2017 12:02:19 +0800 Subject: [PATCH] a --- character/hearth.js | 6 +++--- character/refresh.js | 13 ++++++++++--- character/shenhua.js | 8 ++++++-- character/sp.js | 10 ++++++---- character/standard.js | 11 ++++++++--- character/xianjian.js | 4 ++-- character/yxs.js | 20 ++++++++++++++------ game/game.js | 44 ++++++++++++++++++++++++++++++------------- mode/boss.js | 6 ++++-- mode/chess.js | 6 ++++-- 10 files changed, 88 insertions(+), 40 deletions(-) diff --git a/character/hearth.js b/character/hearth.js index 20acab90f..31cf2cb83 100644 --- a/character/hearth.js +++ b/character/hearth.js @@ -3732,10 +3732,10 @@ character.hearth={ if(result.bool){ player.logSkill('shijie',result.targets); var target=result.targets[0]; - player.gain(target.get('h').randomGet(),target); + var card=target.get('h').randomGet() + player.gain(card,target); event.target=target; - target.$give(1,player); - game.delay(); + target.$giveAuto(card,player); event.target.draw(); } }, diff --git a/character/refresh.js b/character/refresh.js index 0f2ab1559..425d6b043 100644 --- a/character/refresh.js +++ b/character/refresh.js @@ -272,11 +272,18 @@ character.refresh={ if(result.bool){ player.logSkill('retuxi',result.targets); for(var i=0;i0; }, content:function(){ - player.gain(trigger.target.get('h').randomGet(),trigger.target); - trigger.target.$give(1,player); + var card=trigger.target.get('h').randomGet(); + player.gain(card,trigger.target); + trigger.target.$giveAuto(card,player); game.delay(); } }, @@ -6780,8 +6781,9 @@ character.sp={ return event.source&&event.source.num('h')>0; }, content:function(){ - player.gain(trigger.source.get('h').randomGet(),trigger.source); - trigger.source.$give(1,player); + var card=trigger.source.get('h').randomGet(); + player.gain(card,trigger.source); + trigger.source.$giveAuto(card,player); game.delay(); } }, diff --git a/character/standard.js b/character/standard.js index c3e337bfd..4fa6ce3c4 100644 --- a/character/standard.js +++ b/character/standard.js @@ -270,14 +270,19 @@ character.standard={ if(result.bool){ player.logSkill('tuxi',result.targets); for(var i=0;i