From c90f28e410a8ce189b4a8edcae00d444715dc763 Mon Sep 17 00:00:00 2001 From: libccy Date: Sun, 21 May 2017 22:29:14 +0800 Subject: [PATCH] 4 --- character/xianjian.js | 2 +- game/game.js | 4 +- mode/versus.js | 149 +++++++++++++++++++++++++++++++++++++++++- 3 files changed, 150 insertions(+), 5 deletions(-) diff --git a/character/xianjian.js b/character/xianjian.js index 427bee3a5..08986c8f0 100644 --- a/character/xianjian.js +++ b/character/xianjian.js @@ -873,7 +873,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ }, frequent:true, content:function(){ - target.getDebuff(); + trigger.target.getDebuff(); } }, shiying:{ diff --git a/game/game.js b/game/game.js index 8ef1c2656..e119d72fa 100644 --- a/game/game.js +++ b/game/game.js @@ -4495,7 +4495,8 @@ map.enable_all_three.hide(); map.enable_all_cards.hide(); } - if(config.versus_mode=='jiange'||config.versus_mode=='two'||config.versus_mode=='three'||config.versus_mode=='one'){ + if(config.versus_mode=='jiange'||config.versus_mode=='two'|| + config.versus_mode=='three'||config.versus_mode=='one'||config.versus_mode=='siguo'){ map.free_choose.show(); } else{ @@ -4529,6 +4530,7 @@ standard:'自由', three:'统率', jiange:'剑阁', + siguo:'四国', // one:'1v1', two:'2v2', four:'4v4' diff --git a/mode/versus.js b/mode/versus.js index de0f27c94..265e4faa6 100644 --- a/mode/versus.js +++ b/mode/versus.js @@ -73,7 +73,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ } }); } - else if(_status.mode=='jiange'||_status.mode=='four'){ + else if(_status.mode=='jiange'||_status.mode=='siguo'||_status.mode=='four'){ if(_status.mode=='four'&&!get.config('enable_all_cards_four')){ lib.card.list=lib.cardsFour; } @@ -186,6 +186,17 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ } game.chooseCharacterTwo(); } + else if(_status.mode=='siguo'){ + var list=['wei','wei','shu','shu','wu','wu','qun','qun'].randomSort(); + for(var i=0;i