From 4285a33885207014b727a97f5acdb0cb58ae3b44 Mon Sep 17 00:00:00 2001 From: libccy Date: Tue, 14 Aug 2018 16:52:52 +0800 Subject: [PATCH] g --- game/update.js | 17 +++-------------- mode/guozhan.js | 11 ++++++----- 2 files changed, 9 insertions(+), 19 deletions(-) diff --git a/game/update.js b/game/update.js index 8c8973b27..9f22b2adb 100644 --- a/game/update.js +++ b/game/update.js @@ -1,21 +1,10 @@ window.noname_update={ - version:'1.9.55.2', - update:'1.9.54.1', + version:'1.9.55.3', + update:'1.9.55.2', changeLog:[ - '势备篇卡牌', 'bug修复' ], files:[ - 'card/guozhan.js', - 'card/standard.js', - 'character/gujian.js', - 'character/gwent.js', - 'character/hearth.js', - 'character/shenhua.js', - 'character/sp.js', - 'character/yijiang.js', - 'game/asset.js', - 'game/game.js', 'mode/guozhan.js' ] -}; +}; \ No newline at end of file diff --git a/mode/guozhan.js b/mode/guozhan.js index 97805f4ed..a1b30ebb8 100644 --- a/mode/guozhan.js +++ b/mode/guozhan.js @@ -2346,7 +2346,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }, yizhi:{ init:function(player){ - if(player.checkViceSkill('yizhi')){ + if(player.checkViceSkill('yizhi')&&!player.viceChanged){ player.removeMaxHp(); } }, @@ -2600,7 +2600,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ }, hunshang:{ init:function(player){ - if(player.checkViceSkill('hunshang')){ + if(player.checkViceSkill('hunshang')&&!player.viceChanged){ player.removeMaxHp(); } }, @@ -4729,8 +4729,9 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ _status.characterlist.remove(name); _status.characterlist.add(this.name2); game.log(this,'将副将变更为','#g'+get.translation(name)); + this.viceChanged=true; if(this.isUnseen(1)){ - this.showCharacter(1,false,true); + this.showCharacter(1,false); } this.reinit(this.name2,name,false); } @@ -4742,7 +4743,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ hasViceCharacter:function(){ return this.name2.indexOf('gz_shibing')!=0; }, - showCharacter:function(num,log,notrigger){ + showCharacter:function(num,log){ if(num==0&&!this.isUnseen(0)){ return; } @@ -4841,7 +4842,7 @@ game.import('mode',function(lib,game,ui,get,ai,_status){ this.addSkill(skills[i]); } this.checkConflict(); - if(!notrigger){ + if(!this.viceChanged){ var initdraw=parseInt(get.config('initshow_draw')); if(!_status.initshown&&!_status.overing&&initdraw&&this.isAlive()&&_status.mode!='mingjiang'){ this.popup('首亮');