From 92d24b6c21720ae5cf06e4d47eacb01554852c63 Mon Sep 17 00:00:00 2001 From: libccy Date: Sun, 17 Jul 2016 16:06:07 +0800 Subject: [PATCH] m --- character/ow.js | 80 +++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 78 insertions(+), 2 deletions(-) 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