From 1bc96f3a01c323299fa87627bfb719b1b44b5338 Mon Sep 17 00:00:00 2001 From: Spmario233 Date: Sun, 22 Sep 2019 23:02:29 +0800 Subject: [PATCH] v1.9.93.1(Part 2) --- character/extra.js | 18 ++++++++++-------- character/mobile.js | 7 +++---- character/old.js | 3 ++- character/refresh.js | 43 +++++++++++++------------------------------ character/shenhua.js | 20 ++++++-------------- 5 files changed, 34 insertions(+), 57 deletions(-) diff --git a/character/extra.js b/character/extra.js index ada3ae2b0..9554811c4 100755 --- a/character/extra.js +++ b/character/extra.js @@ -155,16 +155,17 @@ game.import('character',function(lib,game,ui,get,ai,_status){ var card=cards.randomGet(); player.gain(card); target.$giveAuto(card,player); - game.delay(0.3); break; } } event.num++; - event.redo(); } "step 4" - player.turnOver(); + game.delay(0.7); + if(num=2){ var list=[]; - if(lib.filter.cardUsable({name:'sha'},player,event.getParent('chooseToUse'))){ - if(game.hasPlayer(function(current){ - return player.canUse('sha',current); - })){ - list.push(['基本','','sha']); - list.push(['基本','','sha','fire']); - list.push(['基本','','sha','thunder']); - } + if(lib.filter.cardUsable({name:'sha'},player,event.getParent('chooseToUse'))&&game.hasPlayer(function(current){ + return player.canUse('sha',current); + })){ + list.push(['基本','','sha']); + list.push(['基本','','sha','fire']); + list.push(['基本','','sha','thunder']); } - if(player.canUse('tao',player,true,true)){ + if(lib.filter.cardUsable({name:'tao'},player,event.getParent('chooseToUse'))&&game.hasPlayer(function(current){ + return player.canUse('tao',current); + })){ list.push(['基本','','tao']); } - if(player.canUse('jiu',player,true,true)){ + if(lib.filter.cardUsable({name:'jiu'},player,event.getParent('chooseToUse'))&&game.hasPlayer(function(current){ + return player.canUse('jiu',current); + })){ list.push(['基本','','jiu']); } if(list.length){ @@ -1669,26 +1671,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ 'step 1' if(result&&result.bool&&result.links[0]){ var card={name:result.links[0][2],nature:result.links[0][3]}; - if(card.name=='sha'){ - event.fakecard=card; - player.chooseTarget(function(card,player,target){ - return player.canUse(_status.event.fakecard,target,true,true); - },true,'选择出杀目标').set('ai',function(target){ - var player=_status.event.player; - return get.effect(target,_status.event.fakecard,player,player); - }).set('fakecard',card); - } - else{ - player.useCard(card,player); - event.finish(); - } - } - else{ - event.finish(); - } - 'step 2' - if(result.bool&&result.targets&&result.targets.length){ - player.useCard(event.fakecard,result.targets); + player.chooseUseTarget(card,true); } }, ai:{ diff --git a/character/shenhua.js b/character/shenhua.js index 98077a002..e18a64803 100755 --- a/character/shenhua.js +++ b/character/shenhua.js @@ -993,7 +993,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ event.list=[]; for(var i=0;i