diff --git a/character/ow.js b/character/ow.js index afea41ab1..88c911631 100644 --- a/character/ow.js +++ b/character/ow.js @@ -11,7 +11,7 @@ character.ow={ ow_yuanshi:['male','qun',3,['feiren','lianpo','zhanlong']], ow_chanyata:['male','qun',3,['xie','luan','sheng']], ow_dva:['female','shu',2,['jijia','tuijin','zihui','chongzhuang']], - ow_mei:['female','wei',3,['shuangqiang','bingqiang','jidong']], + ow_mei:['female','wei',3,['bingqiang','jidong','baoxue']], ow_ana:['female','wei',3,['juji','zhiyuan','mianzhen']], ow_heibaihe:['female','qun',3,['juji','duwen','dulei']], @@ -26,6 +26,74 @@ character.ow={ // ow_zhaliya:['female','shu',4,[]], }, skill:{ + baoxue:{ + enable:'phaseUse', + init:function(player){ + player.storage.baoxue=false; + }, + intro:{ + content:'limited' + }, + mark:true, + skillAnimation:true, + animationColor:'water', + line:'thunder', + filter:function(event,player){ + return !player.storage.baoxue&&player.num('he',{color:'black'})>0; + }, + filterTarget:function(card,player,target){ + return target!=player; + }, + selectTarget:function(){ + return [1,_status.event.player.num('he',{color:'black'})]; + }, + content:function(){ + 'step 0' + if(target==targets[0]){ + player.storage.baoxue=true; + player.unmarkSkill('baoxue'); + player.showHandcards(); + player.discard(player.get('he',{color:'black'})); + } + 'step 1' + var he=target.get('he'); + if(he.length){ + target.discard(he.randomGet()); + } + 'step 2' + target.loseHp(); + 'step 3' + if(!target.isTurnedOver()){ + target.turnOver(); + } + + }, + ai:{ + order:function(skill,player){ + var num=0; + var nh=player.num('h',{color:'black'}); + for(var i=0;i1) return 0; + if(nh>num) return 1; + return 11; + }, + result:{ + target:function(player,target){ + var mode=get.mode(); + if(mode=='identity'||mode=='guozhan'){ + for(var i=0;i