diff --git a/card/standard.js b/card/standard.js index c8a2c5c8f..0d4dd76a6 100644 --- a/card/standard.js +++ b/card/standard.js @@ -533,8 +533,16 @@ card.standard={ contentAfter:function(){ for(var i=0;i0; }, check:function(card){ return 6-ai.get.value(card); + }, + group:'liangce2' + }, + liangce2:{ + trigger:{global:'wuguRemained'}, + direct:true, + filter:function(event){ + return event.remained.length>0; + }, + content:function(){ + 'step 0' + var du=0; + for(var i=0;i=trigger.remained.length/2) return -att; + return att; + } + 'step 1' + if(result.bool){ + player.logSkill('liangce',result.targets); + result.targets[0].gain(trigger.remained.slice(0),'gain2','log'); + trigger.remained.length=0; + } } }, jianbi:{ @@ -72,14 +101,25 @@ character.diy={ } game.delay(); } + else{ + event.finish(); + } "step 2" player.logSkill('jianbi',event.targets); }, ai:{ effect:{ target:function(card,player,target){ - if(get.tag(card,'multitarget')&&!get.info(card).multitarget){ - return [1,1]; + if(get.tag(card,'multitarget')){ + var info=get.info(card); + if(info.selectTarget==-1&&!info.multitarget){ + if(get.tag(card,'multineg')){ + return 0; + } + else{ + return [1,Math.min(3,1+target.maxHp-target.hp)]; + } + } } } } diff --git a/character/gujian.js b/character/gujian.js index 7a172d959..e567e6d2a 100644 --- a/character/gujian.js +++ b/character/gujian.js @@ -329,8 +329,7 @@ character.gujian={ } } if(cards.length){ - player.gain(cards,'gain2'); - game.log(player,'获得了',cards); + player.gain(cards,'gain2','log'); } } }, diff --git a/character/hearth.js b/character/hearth.js index dba514c52..245a57386 100644 --- a/character/hearth.js +++ b/character/hearth.js @@ -1894,9 +1894,8 @@ character.hearth={ } cards2.push(game.createCard(list.randomGet())); } - player.gain(cards2); + player.gain(cards2,'log'); player.$draw(cards2); - game.log(player,'获得了',cards2); }, ai:{ order:8, @@ -1996,8 +1995,7 @@ character.hearth={ }; 'step 1' if(result.bool){ - player.gain(player.storage.xunbao2,'gain2'); - game.log(player,'获得了',player.storage.xunbao2); + player.gain(player.storage.xunbao2,'gain2','log'); delete player.storage.xunbao2; player.removeSkill('xunbao2'); } @@ -3343,8 +3341,7 @@ character.hearth={ return get.type(card)==type; }); if(card){ - player.gain(card,'gain2'); - game.log(player,'获得了',card); + player.gain(card,'gain2','log'); } }, ai:{ diff --git a/character/rank.js b/character/rank.js index 5925f3284..1156935ee 100644 --- a/character/rank.js +++ b/character/rank.js @@ -360,9 +360,15 @@ window.characterRank={ 'pal_lixiaoyao', 'sunjian', 'pangtong', + 'caochun', + 'diy_tianyu', + 'diy_liuzan', + 'diy_zaozhirenjun', + 'diy_yangyi', ], b:[ - 'caochun', + 'diy_liufu', + 'diy_xizhenxihong', 'old_zhuran', 'old_lingtong', 'sp_pangde', diff --git a/character/refresh.js b/character/refresh.js index 2a3dbf561..16cf56204 100644 --- a/character/refresh.js +++ b/character/refresh.js @@ -244,8 +244,7 @@ character.refresh={ content:function(){ "step 0" var cards=get.cards(); - player.gain(cards,'gain2'); - game.log(player,'获得了',cards); + player.gain(cards,'gain2','log'); if(get.type(cards[0])!='basic'){ event.finish(); } @@ -805,9 +804,8 @@ character.refresh={ } else if(result.targets){ player.line(result.targets,'green'); - result.targets[0].gain(event.card); + result.targets[0].gain(event.card,'log'); event.node.moveDelete(result.targets[0]); - game.log(result.targets[0],'获得了',event.card); game.addVideo('gain2',result.targets[0],[get.cardInfo(event.node)]); game.broadcast(function(card,target){ ui.arena.classList.remove('thrownhighlight'); diff --git a/character/shenhua.js b/character/shenhua.js index 42473c700..d34b45b9f 100644 --- a/character/shenhua.js +++ b/character/shenhua.js @@ -1029,6 +1029,7 @@ character.shenhua={ } } }, + locked:false, ai:{ effect:{ target:function(card,player,target,current){ diff --git a/character/sp.js b/character/sp.js index 45c538963..a1a972fd2 100644 --- a/character/sp.js +++ b/character/sp.js @@ -628,15 +628,13 @@ character.sp={ var undone=false; if(num==0){ if(event.basic.length){ - result.targets[0].gain(event.basic,'gain2'); - game.log(result.targets[0],'获得了',event.basic); + result.targets[0].gain(event.basic,'gain2','log'); } } else{ if(result.bool){ if(event.basic.length){ - player.gain(event.basic,'gain2'); - game.log(player,'获得了',event.basic); + player.gain(event.basic,'gain2','log'); } } else{ @@ -652,8 +650,7 @@ character.sp={ } 'step 3' if(player.storage.zhaolie.isAlive()){ - game.log(player.storage.zhaolie,'获得了',event.basic); - player.storage.zhaolie.gain(event.basic,'gain2'); + player.storage.zhaolie.gain(event.basic,'gain2','log'); } else{ for(var i=0;i