From fd5a810b7bcc43c73b7469c1b32485be3fec26eb Mon Sep 17 00:00:00 2001 From: libccy Date: Fri, 7 Jul 2017 00:25:54 +0800 Subject: [PATCH] x --- card/extra.js | 1 + card/gujian.js | 1 + card/guozhan.js | 5 ++ card/hearth.js | 4 ++ card/sp.js | 1 + card/standard.js | 2 + card/swd.js | 2 + card/yunchou.js | 1 + character/yijiang.js | 154 ++++++++++++++++++++++++++++++++++++++++++- game/game.js | 5 +- 10 files changed, 172 insertions(+), 4 deletions(-) diff --git a/card/extra.js b/card/extra.js index 5c1d7baf3..aec3ca9f2 100644 --- a/card/extra.js +++ b/card/extra.js @@ -8,6 +8,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){ audio:true, fullskin:true, type:"basic", + toself:true, enable:function(event,player){ return !player.hasSkill('jiu'); }, diff --git a/card/gujian.js b/card/gujian.js index 0e0b6d688..27c641671 100644 --- a/card/gujian.js +++ b/card/gujian.js @@ -361,6 +361,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){ fullskin:true, type:'trick', enable:true, + toself:true, filterTarget:function(card,player,target){ return target==player; }, diff --git a/card/guozhan.js b/card/guozhan.js index c06399256..703e7315e 100644 --- a/card/guozhan.js +++ b/card/guozhan.js @@ -299,6 +299,10 @@ game.import('card',function(lib,game,ui,get,ai,_status){ order:6, result:{ target:-1 + }, + tag:{ + multitarget:1, + multineg:1, } } }, @@ -857,6 +861,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){ filter:function(event,player){ return player.hasSkill('xietianzi'); }, + toself:true, forced:true, popup:false, priority:-50, diff --git a/card/hearth.js b/card/hearth.js index b124a4a06..5555631d6 100644 --- a/card/hearth.js +++ b/card/hearth.js @@ -43,6 +43,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){ fullskin:true, type:'trick', enable:true, + toself:true, filterTarget:function(card,player,target){ return player==target; }, @@ -340,6 +341,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){ fullskin:true, enable:true, type:'trick', + toself:true, filterTarget:function(card,player,target){ return player==target; }, @@ -363,6 +365,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){ type:'trick', enable:true, discard:false, + toself:true, selectTarget:-1, filterTarget:function(card,player,target){ return target==player; @@ -475,6 +478,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){ enable:true, selectTarget:-1, modTarget:true, + toself:true, filterTarget:function(card,player,target){return player==target}, content:function(){ target.gainMaxHp(); diff --git a/card/sp.js b/card/sp.js index 1290f1493..58eb52f3d 100644 --- a/card/sp.js +++ b/card/sp.js @@ -272,6 +272,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){ du:{ type:'basic', fullskin:true, + toself:true, ai:{ value:-5, useful:6, diff --git a/card/standard.js b/card/standard.js index 2da9ccaaa..764c0e448 100644 --- a/card/standard.js +++ b/card/standard.js @@ -202,6 +202,7 @@ game.import('card',function(lib,game,ui,get,ai,_status){ fullskin:true, type:'basic', cardcolor:'red', + toself:true, enable:function(card,player){ return player.hptarget.hp; + }, + content:function(){ + 'step 0' + player.showCards(cards); + 'step 1' + var num=target.countCards('h')-target.hp; + if(num<=0){ + event.finish(); + return; + } + var hs=target.getCards('h').randomGets(num); + target.showCards(hs); + var colors=[]; + var numbers=[]; + for(var i=0;i=0||player.countCards('h')