From 9a3952a7779ba8b9d42b2ed3840703332f406a78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=88=91=E5=8F=AA=E6=98=AF=E8=B5=B5=E4=BA=91?= <42496545+imzhaoyun@users.noreply.github.com> Date: Mon, 20 Aug 2018 21:07:14 +0800 Subject: [PATCH 1/2] Update extra.js --- character/extra.js | 78 ++++++++++++++++++++++++---------------------- 1 file changed, 41 insertions(+), 37 deletions(-) diff --git a/character/extra.js b/character/extra.js index 02a6ad193..5be1573d3 100644 --- a/character/extra.js +++ b/character/extra.js @@ -3,7 +3,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ return { name:'extra', character:{ - shen_guanyu:['male','shen',6,['wuhun','wushen'],['shu']], + shen_guanyu:['male','shen',5,['wuhun','wushen'],['shu']], shen_zhaoyun:['male','shen',2,['juejing','longhun'],['shu']], shen_zhugeliang:['male','shen',3,['qixing','kuangfeng','dawu'],['shu']], shen_lvmeng:['male','shen',3,['shelie','gongxin'],['wu']], @@ -46,11 +46,14 @@ game.import('character',function(lib,game,ui,get,ai,_status){ if(event.targets2.length){ var cur=event.targets2.shift(); if(cur&&cur.countCards('he')){ - cur.chooseToDiscard('he',true,4); + cur.chooseToDiscard('e',true,Infinity); + cur.chooseToDiscard('h',true,4); } event.redo(); - } - }, + } + "step 3" + player.turnOver(); + }, ai:{ combo:'baonu', order:10, @@ -247,6 +250,7 @@ game.import('character',function(lib,game,ui,get,ai,_status){ baonu:{ audio:2, mark:true, + marktext:'暴', init:function(player){ player.storage.baonu=2; player.markSkill('baonu'); @@ -617,37 +621,36 @@ game.import('character',function(lib,game,ui,get,ai,_status){ } }, wuhun:{ - trigger:{ - player:'damageEnd', - }, - alter:true, - filter:function (event,player){ - if(event.source==undefined) return false - if(!get.is.altered('wuhun')) return false - return true; - }, - forced:true, - init:function (player){ - for(var i=0;i