diff --git a/character/mtg.js b/character/mtg.js index 2b2ea4d5c..8c76cbd39 100644 --- a/character/mtg.js +++ b/character/mtg.js @@ -45,81 +45,17 @@ game.import('character',function(lib,game,ui,get,ai,_status){ lingyong:{ enable:'phaseUse', filter:function(event,player){ - return player.hasSkillTag('lingyong'); + return !player.hasSkill('subplayer')&&player.getSubPlayers('lingyong_get').length>0; }, unique:true, forceunique:true, - group:'lingyong2', + group:'lingyong_get', direct:true, delay:0, skillAnimation:true, animationColor:'thunder', content:function(){ - 'step 0' - var list=[]; - var list2=[]; - var skills=player.getSkills(); - for(var i=0;i1){ - var dialog=ui.create.dialog('灵俑','hidden'); - dialog.add([list,'character']); - player.chooseButton(dialog,true); - } - else if(list.length==1){ - event.directresult=list[0]; - } - else{ - event.finish(); - } - player.logSkill('lingyong'); - 'step 1' - if(!event.directresult){ - if(result&&result.bool&&result.links[0]){ - event.directresult=result.links[0]; - } - else{ - event.finish(); - return; - } - } - if(event.directresult){ - var storage={}; - for(var i=0;i/g,'')+'之俑'; - lib.skill[name]={ - intro:{ - content:'出牌阶段,你可以移去此标记,然后变身为'+get.translation(trigger.player) + subSkill:{ + get:{ + trigger:{global:'dieAfter'}, + forced:true, + filter:function(event,player){ + return ![player.name,player.name1,player.name2].contains(event.player.name); }, - mark:'character', - onremove:true, - ai:{ - lingyong:true + content:function(){ + player.addSubPlayer({ + name:trigger.player.name, + skills:lib.character[trigger.player.name][3], + hs:get.cards(2), + intro:'出牌阶段,你可以调遣此随从', + intro2:'xx' + }); } } - player.storage[name]=trigger.player; - player.addSkill(name); - } - }, - lingyong3:{ - trigger:{player:'dieBefore'}, - forced:true, - priority:-9, - onremove:true, - mark:'character', - intro:{ - content:'死亡前变回莉莲娜' - }, - content:function(){ - 'step 0' - if(player.storage.lingyong3){ - player.reinit(player.storage.lingyong3.name2,'mtg_lilianna',[ - player.storage.lingyong3.hp, - player.storage.lingyong3.maxHp - ]); - player.update(); - for(var i in player.storage.lingyong3.storage){ - player.storage[i]=player.storage.lingyong3.storage[i]; - } - player.addSkill(player.storage.lingyong3.skills); - trigger.cancel(); - player.lose(player.getCards('he'),ui.discardPile)._triggered=null; - } - 'step 1' - if(player.storage.lingyong3){ - player.directgain(player.storage.lingyong3.hs); - player.directequip(player.storage.lingyong3.es); - } - player.removeSkill('lingyong3'); - }, - ai:{ - nosave:true, - threaten:0.8 } }, mhuanyi:{ diff --git a/game/game.js b/game/game.js index 39d0b6a3d..8877668d4 100644 --- a/game/game.js +++ b/game/game.js @@ -5577,7 +5577,7 @@ '
游戏操作
', '游戏名词':'