2015-06-12 05:35:29 +00:00
|
|
|
|
'use strict';
|
2015-06-10 09:10:24 +00:00
|
|
|
|
character.hearth={
|
|
|
|
|
character:{
|
2017-01-14 08:57:14 +00:00
|
|
|
|
hs_jaina:['female','wei',3,['huopu','aoshu','bingjia']],
|
2017-01-18 08:58:53 +00:00
|
|
|
|
hs_lrexxar:['male','shu',4,['yushou']],
|
2015-11-26 00:50:57 +00:00
|
|
|
|
hs_wuther:['male','qun',4,['fengxian','jieming']],
|
2016-01-12 13:18:47 +00:00
|
|
|
|
hs_jgarrosh:['male','shu',4,['zhanhou','qiangxi']],
|
2015-11-26 00:50:57 +00:00
|
|
|
|
hs_malfurion:['male','wu',4,['jihuo']],
|
2016-01-12 13:18:47 +00:00
|
|
|
|
hs_guldan:['male','wei',3,['fenliu','hongxi']],
|
2015-11-26 00:50:57 +00:00
|
|
|
|
hs_anduin:['male','qun',3,['shengguang','shijie','anying']],
|
2015-12-30 04:00:49 +00:00
|
|
|
|
hs_sthrall:['male','wu',4,['tuteng','guozai','zuling']],
|
2016-01-12 13:18:47 +00:00
|
|
|
|
hs_waleera:['female','shu',3,['jianren','mengun','wlianji']],
|
2015-06-19 15:31:36 +00:00
|
|
|
|
|
2017-01-18 08:58:53 +00:00
|
|
|
|
hs_medivh:['male','wei',3,['jingxiang','zuzhou','mdzhoufu']],
|
|
|
|
|
hs_alleria:['male','wu',3,['fengxing','xinliegong']],
|
2016-01-12 13:18:47 +00:00
|
|
|
|
hs_magni:['male','shu',4,['zhongjia','dunji']],
|
2016-03-22 06:45:57 +00:00
|
|
|
|
hs_liadrin:['female','shu',4,['xueren']],
|
2016-07-16 02:11:40 +00:00
|
|
|
|
hs_morgl:['male','wu',3,['s_tuteng']],
|
2017-01-15 16:58:11 +00:00
|
|
|
|
// hs_khadgar:['male','shu',3,['s_tuteng']],
|
2017-01-28 13:55:23 +00:00
|
|
|
|
// hs_tyrande:['female','wei',3,['yuelu','xingluo']],
|
2015-08-15 09:10:06 +00:00
|
|
|
|
|
2015-11-26 00:50:57 +00:00
|
|
|
|
hs_neptulon:['male','wu',4,['liechao','qingliu']],
|
|
|
|
|
hs_wvelen:['male','qun',3,['shengyan','xianzhi']],
|
|
|
|
|
hs_antonidas:['male','wei',3,['yanshu','bingshuang']],
|
|
|
|
|
hs_alakir:['male','wei',3,['fengnu','shengdun']],
|
2016-03-22 06:45:57 +00:00
|
|
|
|
hs_zhouzhuo:['male','qun',4,['yiwen']],
|
2015-11-26 00:50:57 +00:00
|
|
|
|
hs_yngvar:['male','qun',3,['huanwu']],
|
2017-01-18 08:58:53 +00:00
|
|
|
|
hs_bchillmaw:['male','wei',5,['hanshuang','bingshi']],
|
2015-11-26 00:50:57 +00:00
|
|
|
|
hs_malorne:['male','wu',3,['enze','chongsheng']],
|
|
|
|
|
hs_malygos:['male','wei',4,['malymowang']],
|
2015-11-30 13:08:29 +00:00
|
|
|
|
hs_xuefashi:['male','wei',2,['liehun','xjumo']],
|
2017-01-28 03:10:59 +00:00
|
|
|
|
hs_loatheb:['male','wu',5,['duzhang']],
|
2016-03-22 06:45:57 +00:00
|
|
|
|
hs_trueheart:['female','qun',3,['qianghuax']],
|
2016-03-17 07:30:23 +00:00
|
|
|
|
hs_sainaliusi:['male','wu',4,['chongsheng','yulu']],
|
2016-03-18 16:34:46 +00:00
|
|
|
|
hs_lrhonin:['male','wei',4,['bingyan','yufa']],
|
2017-01-08 04:09:34 +00:00
|
|
|
|
hs_bolvar:['male','wei',4,['yuanzheng','bzhuiji']],
|
2016-03-18 16:34:46 +00:00
|
|
|
|
hs_fuding:['male','wei',4,['shengdun','fbeifa']],
|
2017-01-18 08:58:53 +00:00
|
|
|
|
hs_xuanzhuanjijia:['male','shu',2,['jixuan']],
|
2015-11-26 00:50:57 +00:00
|
|
|
|
hs_ysera:['female','wu',4,['chenshui']],
|
2015-12-20 04:34:31 +00:00
|
|
|
|
hs_alextrasza:['female','shu',5,['fushi']],
|
2016-03-04 13:31:26 +00:00
|
|
|
|
hs_nozdormu:['male','qun',5,['shixu']],
|
2016-05-31 06:18:39 +00:00
|
|
|
|
// hs_sapphiron:['male','wei',4,['bingdong','stuxi']],
|
2016-03-04 13:31:26 +00:00
|
|
|
|
hs_kchromaggus:['male','wei',4,['fenlie']],
|
2016-04-04 16:48:27 +00:00
|
|
|
|
hs_lreno:['male','shu',4,['tanmi']],
|
2016-10-16 04:53:18 +00:00
|
|
|
|
hs_brann:['male','shu',3,['qianghua']],
|
2016-03-22 06:45:57 +00:00
|
|
|
|
hs_finley:['male','wu',3,['maoxian']],
|
2016-05-28 14:54:09 +00:00
|
|
|
|
hs_kcthun:['male','qun',4,['luanji','xianji']],
|
|
|
|
|
hs_anomalus:['male','wei',4,['mobao']],
|
2016-05-28 23:59:49 +00:00
|
|
|
|
hs_blingtron:['male','shu',3,['zengli','xiubu']],
|
2016-05-29 02:40:12 +00:00
|
|
|
|
hs_yogg:['male','wu',4,['kuangluan']],
|
2016-05-29 05:34:06 +00:00
|
|
|
|
hs_xialikeer:['female','shu',3,['duxin']],
|
2015-08-15 09:10:06 +00:00
|
|
|
|
|
2015-12-20 04:34:31 +00:00
|
|
|
|
hs_zhishigushu:['male','shu',4,['jiaohui']],
|
|
|
|
|
hs_zhanzhenggushu:['male','wei',6,['biri']],
|
|
|
|
|
hs_ronghejuren:['male','shu',8,['ronghuo']],
|
2016-01-12 13:18:47 +00:00
|
|
|
|
hs_shanlingjuren:['male','wu',8,['luoshi']],
|
2016-05-29 03:22:37 +00:00
|
|
|
|
hs_aedwin:['male','wu',3,['lianzhan']],
|
2016-01-12 13:18:47 +00:00
|
|
|
|
hs_mijiaojisi:['female','wu',3,['kuixin']],
|
2015-11-26 00:50:57 +00:00
|
|
|
|
hs_huzhixiannv:['female','wu',3,['jingmeng','qingliu']],
|
2016-07-16 02:11:40 +00:00
|
|
|
|
// hs_tgolem:['male','wu',4,['xinwuyan','guozai']],
|
|
|
|
|
hs_totemic:['male','wu',3,['peiyu']],
|
|
|
|
|
// hs_wujiyuansu:['male','wu',3,['s_tuteng']],
|
2016-06-25 16:38:59 +00:00
|
|
|
|
hs_xsylvanas:['female','qun',3,['busi','xshixin','xmojian']],
|
2015-11-26 00:50:57 +00:00
|
|
|
|
hs_siwangzhiyi:['male','qun',12,['mieshi']],
|
|
|
|
|
hs_bilanyoulong:['male','wei',4,['lingzhou']],
|
2015-12-20 04:34:31 +00:00
|
|
|
|
hs_jinglinglong:['male','wu',3,['mianyi']],
|
2016-05-21 00:27:08 +00:00
|
|
|
|
// hs_ruanniguai:['male','wu',3,['nianfu']],
|
2016-06-19 05:35:51 +00:00
|
|
|
|
// hs_hudunren:['male','shu',3,['hhudun']],
|
2016-03-14 08:58:27 +00:00
|
|
|
|
hs_nate:['male','wu',4,['chuidiao']],
|
|
|
|
|
hs_jiaziruila:['male','wu',4,['hannu']],
|
2016-05-30 15:14:35 +00:00
|
|
|
|
// hs_shifazhe:['male','wei',3,['jizhi','shifa']],
|
2016-03-19 10:39:09 +00:00
|
|
|
|
hs_lafamu:['male','shu',4,['xieneng']],
|
|
|
|
|
hs_yelise:['female','wei',3,['xunbao','zhuizong']],
|
2016-06-20 12:02:56 +00:00
|
|
|
|
|
2016-06-20 16:09:42 +00:00
|
|
|
|
hs_fandral:['male','shu',4,['nuyan','chouhuo']],
|
2016-06-21 07:47:20 +00:00
|
|
|
|
hs_hallazeal:['male','wei',4,['shengteng','yuansu']],
|
2016-06-20 12:02:56 +00:00
|
|
|
|
// hs_nzoth:['male','shu',4,['nuyan']],
|
2016-06-21 07:47:20 +00:00
|
|
|
|
hs_walian:['male','shu',4,['wzhanyi']],
|
2016-06-20 12:02:56 +00:00
|
|
|
|
// hs_pengpeng:['male','qun',4,['zhadan']],
|
2016-12-05 02:45:27 +00:00
|
|
|
|
// hs_yashaji:['male','wei',3,[]],
|
2016-12-01 04:56:54 +00:00
|
|
|
|
// hs_wolazi:['male','wei',3,[]],
|
2016-12-05 02:45:27 +00:00
|
|
|
|
|
2016-12-01 04:56:54 +00:00
|
|
|
|
// hs_tanghangu:['male','wei',3,[]],
|
2017-01-18 03:00:22 +00:00
|
|
|
|
hs_aya:['female','wu',3,['ayuling','qingzun']],
|
2016-12-01 04:56:54 +00:00
|
|
|
|
// hs_barnes:['male','wei',3,[]],
|
|
|
|
|
// hs_nuogefu:['male','wei',3,[]],
|
2017-01-15 09:55:22 +00:00
|
|
|
|
hs_kazhakusi:['male','shu',3,['lianjin']],
|
2016-12-01 04:56:54 +00:00
|
|
|
|
// hs_lazi:['male','wei',3,[]],
|
2016-12-05 02:45:27 +00:00
|
|
|
|
hs_shaku:['male','wei',3,['shouji']],
|
2017-01-28 04:05:35 +00:00
|
|
|
|
hs_laxiao:['male','shu',3,['guimou','yingxi']],
|
2016-12-01 04:56:54 +00:00
|
|
|
|
// hs_xiangyaqishi:['male','wei',3,[]],
|
2017-01-15 16:58:11 +00:00
|
|
|
|
// hs_fenjie:['male','shu',3,['guimou','yingxi']],
|
2015-09-10 09:35:58 +00:00
|
|
|
|
},
|
|
|
|
|
perfectPair:{
|
|
|
|
|
hs_sthrall:['hs_totemic','hs_alakir','hs_neptulon','hs_yngvar','hs_tgolem'],
|
|
|
|
|
hs_anduin:['hs_wvelen','hs_mijiaojisi'],
|
|
|
|
|
hs_jaina:['hs_antonidas'],
|
|
|
|
|
hs_malfurion:['hs_malorne'],
|
2015-06-10 09:10:24 +00:00
|
|
|
|
},
|
|
|
|
|
skill:{
|
2017-01-18 08:58:53 +00:00
|
|
|
|
yushou:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
filterCard:true,
|
|
|
|
|
position:'he',
|
|
|
|
|
check:function(card){
|
|
|
|
|
return 5-ai.get.value(card);
|
|
|
|
|
},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(player.hasSkill('yushou_misha')&&player.hasSkill('yushou_huofu')&&player.hasSkill('yushou_leiouke')) return false;
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
if(!lib.character.stone_misha){
|
|
|
|
|
lib.character.stone_misha=['male','shu',3,['chaofeng'],['minskin','stone','mode:stone'],[3,3,'hunter']];
|
|
|
|
|
}
|
|
|
|
|
if(!lib.character.stone_huofu){
|
|
|
|
|
lib.character.stone_huofu=['male','qun',2,['stone_chongfeng'],['minskin','stone','mode:stone'],[3,4,'hunter']];
|
|
|
|
|
}
|
|
|
|
|
if(!lib.character.stone_leiouke){
|
|
|
|
|
lib.character.stone_leiouke=['male','shu',2,['hunter_zhanhuo'],['minskin','stone','mode:stone'],[3,1,'hunter']];
|
|
|
|
|
}
|
|
|
|
|
var list=['misha','leiouke','huofu'];
|
|
|
|
|
for(var i=0;i<list.length;i++){
|
|
|
|
|
if(player.hasSkill('yushou_'+list[i])){
|
|
|
|
|
list.splice(i--,1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
var skill=list.randomGet();
|
|
|
|
|
var name='yushou_'+skill;
|
|
|
|
|
player.addTempSkill(name,{player:'phaseBegin'});
|
|
|
|
|
player.markSkillCharacter(name,'stone_'+skill,lib.translate[name],lib.translate[name+'_info']);
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:9.5,
|
|
|
|
|
result:{
|
|
|
|
|
player:1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
yushou_misha:{
|
|
|
|
|
trigger:{player:'damageBegin'},
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.num>=1;
|
|
|
|
|
},
|
|
|
|
|
usable:1,
|
|
|
|
|
content:function(){
|
|
|
|
|
if(trigger.num>=1){
|
|
|
|
|
trigger.num--;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
effect:{
|
|
|
|
|
target:function(card,player,target){
|
|
|
|
|
if(get.tag(card,'damage')){
|
|
|
|
|
if(player.hasSkill('jueqing')) return;
|
|
|
|
|
return 0.5;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
yushou_huofu:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
viewAs:{name:'juedou'},
|
|
|
|
|
filterCard:{color:'black'},
|
|
|
|
|
position:'he',
|
|
|
|
|
viewAsFilter:function(player){
|
|
|
|
|
if(!player.num('he',{color:'black'})) return false;
|
|
|
|
|
},
|
|
|
|
|
check:function(card){
|
|
|
|
|
return 6-ai.get.value(card);
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
basic:{
|
|
|
|
|
order:10
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
yushou_leiouke:{
|
|
|
|
|
trigger:{source:'damageBegin'},
|
|
|
|
|
forced:true,
|
|
|
|
|
usable:1,
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.num++;
|
|
|
|
|
}
|
|
|
|
|
},
|
2017-01-18 03:00:22 +00:00
|
|
|
|
qingzun:{
|
2017-01-15 16:58:11 +00:00
|
|
|
|
subSkill:{
|
|
|
|
|
count:{
|
|
|
|
|
trigger:{player:'useCard'},
|
|
|
|
|
forced:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
silent:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.card.name.indexOf('hsqingyu_')==0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
2017-01-18 03:00:22 +00:00
|
|
|
|
player.storage.qingzun++;
|
2017-01-15 16:58:11 +00:00
|
|
|
|
player.updateMarks();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
draw1:{
|
|
|
|
|
trigger:{player:'phaseBegin'},
|
|
|
|
|
filter:function(event,player){
|
2017-01-18 03:00:22 +00:00
|
|
|
|
return player.storage.qingzun>=2;
|
2017-01-15 16:58:11 +00:00
|
|
|
|
},
|
|
|
|
|
frequent:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
player.draw();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
draw2:{
|
|
|
|
|
trigger:{player:'phaseEnd'},
|
|
|
|
|
filter:function(event,player){
|
2017-01-18 03:00:22 +00:00
|
|
|
|
return player.storage.qingzun>=6;
|
2017-01-15 16:58:11 +00:00
|
|
|
|
},
|
|
|
|
|
frequent:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
player.draw();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
mod:{
|
|
|
|
|
maxHandcard:function(player,num){
|
2017-01-18 03:00:22 +00:00
|
|
|
|
return num+player.storage.qingzun;
|
2017-01-15 16:58:11 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
2017-01-18 03:00:22 +00:00
|
|
|
|
init:function(player){
|
|
|
|
|
player.storage.qingzun=0;
|
|
|
|
|
},
|
|
|
|
|
mark:true,
|
|
|
|
|
marktext:'玉',
|
|
|
|
|
intro:{
|
|
|
|
|
content:function(storage,player){
|
|
|
|
|
if(!storage) return '未使用过青玉牌';
|
|
|
|
|
var str='手牌上限+'+storage;
|
|
|
|
|
if(storage>=6){
|
|
|
|
|
str+=';回合开始和结束阶段,你可以摸一张牌'
|
|
|
|
|
}
|
|
|
|
|
else if(storage>=2){
|
|
|
|
|
str+=';回合开始阶段,你可以摸一张牌'
|
|
|
|
|
}
|
|
|
|
|
return str;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
group:['qingzun_count','qingzun_draw1','qingzun_draw2'],
|
|
|
|
|
},
|
|
|
|
|
ayuling:{
|
|
|
|
|
trigger:{player:'damageEnd'},
|
|
|
|
|
frequent:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
var list=['feibiao','hufu','zhao','zhanfang','shandian'];
|
|
|
|
|
player.gain(game.createCard('hsqingyu_'+list.randomGet()),'draw');
|
|
|
|
|
},
|
2017-01-15 16:58:11 +00:00
|
|
|
|
ai:{
|
|
|
|
|
maixie:true,
|
|
|
|
|
effect:{
|
|
|
|
|
target:function(card,player,target){
|
|
|
|
|
if(get.tag(card,'damage')){
|
|
|
|
|
if(player.hasSkill('jueqing')) return [1,-2];
|
|
|
|
|
if(!target.hasFriend()) return;
|
|
|
|
|
if(target.hp>=4) return [1,get.tag(card,'damage')*1.5];
|
|
|
|
|
if(target.hp==3) return [1,get.tag(card,'damage')*1];
|
|
|
|
|
if(target.hp==2) return [1,get.tag(card,'damage')*0.5];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2017-01-14 08:57:14 +00:00
|
|
|
|
aoshu:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
position:'he',
|
|
|
|
|
filterCard:function(card){
|
|
|
|
|
return get.suit(card)=='spade';
|
|
|
|
|
},
|
|
|
|
|
viewAs:{name:'wuzhong'},
|
|
|
|
|
viewAsFilter:function(player){
|
|
|
|
|
if(!player.num('he',{suit:'spade'})) return false;
|
|
|
|
|
},
|
|
|
|
|
prompt:'将一张黑桃手牌当作无中生有使用',
|
|
|
|
|
check:function(card){return 7-ai.get.value(card)},
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:1.4,
|
|
|
|
|
order:9,
|
|
|
|
|
}
|
|
|
|
|
},
|
2017-01-08 04:09:34 +00:00
|
|
|
|
bzhuiji:{
|
|
|
|
|
trigger:{global:'dieAfter'},
|
|
|
|
|
check:function(event,player){
|
|
|
|
|
return ai.get.attitude(player,event.source)<=0;
|
|
|
|
|
},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.source&&event.source.isAlive()&&event.source!=player;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.draw(2);
|
|
|
|
|
player.useCard({name:'juedou'},trigger.source);
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:1.5,
|
|
|
|
|
expose:0.1
|
|
|
|
|
}
|
|
|
|
|
},
|
2017-01-15 09:55:22 +00:00
|
|
|
|
lianjin_old:{
|
2016-12-05 02:45:27 +00:00
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:2,
|
|
|
|
|
filterCard:true,
|
|
|
|
|
check:function(card){
|
|
|
|
|
return 7-ai.get.value(card);
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var list=get.inpile('trick');
|
|
|
|
|
list=list.randomGets(3);
|
|
|
|
|
for(var i=0;i<list.length;i++){
|
|
|
|
|
list[i]=['锦囊','',list[i]];
|
|
|
|
|
}
|
|
|
|
|
var dialog=ui.create.dialog('选择一张锦囊牌加入你的手牌',[list,'vcard'],'hidden');
|
|
|
|
|
player.chooseButton(dialog,true);
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.buttons){
|
|
|
|
|
player.gain(game.createCard(result.buttons[0].link[2]),'draw');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:9,
|
|
|
|
|
result:{
|
|
|
|
|
player:1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2017-01-15 09:55:22 +00:00
|
|
|
|
lianjin:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:2,
|
2017-01-25 17:13:45 +00:00
|
|
|
|
filterCard:function(card){
|
|
|
|
|
return get.type(card)!='hsyaoshui';
|
|
|
|
|
},
|
2017-01-15 09:55:22 +00:00
|
|
|
|
check:function(card){
|
|
|
|
|
return 8-ai.get.value(card)
|
|
|
|
|
},
|
|
|
|
|
discard:false,
|
|
|
|
|
lose:false,
|
|
|
|
|
delay:false,
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var names=[];
|
|
|
|
|
var inpile=lib.inpile.slice(0);
|
|
|
|
|
inpile.randomSort();
|
|
|
|
|
var single=false;
|
|
|
|
|
var equip=Math.random()<0.5;
|
|
|
|
|
var equips=[];
|
|
|
|
|
for(var i=0;i<inpile.length;i++){
|
|
|
|
|
if(lib.inpile[i]=='chuansongmen') continue;
|
|
|
|
|
var info=lib.card[inpile[i]];
|
|
|
|
|
if(!info.enable) continue;
|
|
|
|
|
if(!info.filterTarget) continue;
|
|
|
|
|
if(typeof info.selectTarget=='function') continue;
|
|
|
|
|
if(inpile[i].indexOf('_')!=-1) continue;
|
|
|
|
|
if(info.type=='equip'){
|
|
|
|
|
equips.push(inpile[i]);
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
if(equip&&names.length>=2) continue;
|
|
|
|
|
if(names.length>=3) continue;
|
|
|
|
|
var select=get.select(info.selectTarget);
|
|
|
|
|
if(select[0]==-1&&select[1]==-1){
|
|
|
|
|
names.push(inpile[i]);
|
|
|
|
|
if(info.modTarget) single=true;
|
|
|
|
|
}
|
|
|
|
|
else if(select[0]==1&&select[1]==1){
|
|
|
|
|
names.push(inpile[i]);
|
|
|
|
|
single=true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(equip){
|
|
|
|
|
names.push(equips.randomGet());
|
|
|
|
|
}
|
|
|
|
|
names.sort(lib.sort.name);
|
|
|
|
|
var name='hsyaoshui_'+names[0]+'_'+names[1]+'_'+names[2];
|
|
|
|
|
if(!lib.card[name]){
|
|
|
|
|
lib.card[name]=get.copy(lib.skill.lianjin.template);
|
|
|
|
|
lib.card[name].names=names;
|
|
|
|
|
lib.card[name].selectTarget=single?1:-1;
|
|
|
|
|
lib.translate[name]='药水';
|
|
|
|
|
lib.translate[name+'_info']=get.translation(names[0])+'、'+
|
|
|
|
|
get.translation(names[1])+'、'+get.translation(names[2]);
|
|
|
|
|
}
|
|
|
|
|
cards[0].style.transitionDuration='0.2s';
|
|
|
|
|
ui.refresh(cards[0]);
|
|
|
|
|
cards[0].classList.add('opaque');
|
|
|
|
|
event.cardname=name;
|
|
|
|
|
if(player!=game.me){
|
|
|
|
|
var fakecard=game.createCard(name);
|
|
|
|
|
fakecard.node.info.remove();
|
|
|
|
|
player.$draw(fakecard);
|
|
|
|
|
}
|
|
|
|
|
game.delay(0,200);
|
|
|
|
|
'step 1'
|
|
|
|
|
cards[0].style.transitionDuration='0s';
|
|
|
|
|
ui.refresh(cards[0]);
|
|
|
|
|
cards[0].classList.remove('fullskin');
|
|
|
|
|
cards[0].init([cards[0].suit,cards[0].number,event.cardname]);
|
|
|
|
|
game.delay(0,100);
|
|
|
|
|
'step 2'
|
|
|
|
|
cards[0].style.transitionDuration='';
|
|
|
|
|
ui.refresh(cards[0]);
|
|
|
|
|
cards[0].classList.remove('opaque');
|
|
|
|
|
game.delay(0,200);
|
|
|
|
|
},
|
|
|
|
|
template:{
|
|
|
|
|
type:'hsyaoshui',
|
|
|
|
|
enable:true,
|
|
|
|
|
fullimage:true,
|
|
|
|
|
image:'card/hsyaoshui',
|
|
|
|
|
vanish:true,
|
|
|
|
|
derivation:'hs_kazhakusi',
|
|
|
|
|
multitarget:true,
|
|
|
|
|
multiline:true,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
var info=get.info(card);
|
|
|
|
|
var names=info.names;
|
|
|
|
|
for(var i=0;i<names.length;i++){
|
|
|
|
|
var info2=lib.card[names[i]];
|
|
|
|
|
if(get.select(info2.selectTarget)[0]==-1&&!info2.modTarget) continue;
|
|
|
|
|
if(!lib.filter.targetEnabled2({name:names[i]},player,target)) return false;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
event.names=get.info(card).names.slice(0);
|
|
|
|
|
'step 1'
|
|
|
|
|
if(event.names.length){
|
|
|
|
|
var name=event.names.shift();
|
|
|
|
|
var info=lib.card[name];
|
|
|
|
|
var targets=[];
|
|
|
|
|
if(get.select(info.selectTarget)[0]==-1&&!info.modTarget){
|
|
|
|
|
var targets=[];
|
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
if(player.canUse(name,game.players[i])){
|
|
|
|
|
targets.push(game.players[i]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
targets.sort(lib.sort.seat);
|
|
|
|
|
}
|
|
|
|
|
else{
|
2017-01-25 17:13:45 +00:00
|
|
|
|
if(target.isDead()){
|
|
|
|
|
return;
|
|
|
|
|
}
|
2017-01-15 09:55:22 +00:00
|
|
|
|
targets.push(target);
|
|
|
|
|
}
|
|
|
|
|
player.useCard(game.createCard({name:name,suit:get.suit(card),number:card.number}),targets);
|
|
|
|
|
event.redo();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:9.1,
|
2017-01-25 17:13:45 +00:00
|
|
|
|
threaten:1.5,
|
2017-01-15 09:55:22 +00:00
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target,card){
|
|
|
|
|
var info=get.info(card);
|
|
|
|
|
if(!info) return 0;
|
|
|
|
|
if(!Array.isArray(info.names)) return 0;
|
|
|
|
|
var names=info.names;
|
|
|
|
|
if(names.contains('xingjiegoutong')&&target.num('h')>=3) return -1;
|
|
|
|
|
var num=0;
|
|
|
|
|
for(var i=0;i<names.length;i++){
|
|
|
|
|
var info2=lib.card[names[i]];
|
|
|
|
|
if(get.select(info2.selectTarget)[0]==-1&&!info2.modTarget) continue;
|
|
|
|
|
var eff=ai.get.effect(target,{name:names[i]},player,target);
|
|
|
|
|
if(eff>0){
|
|
|
|
|
num++;
|
|
|
|
|
}
|
|
|
|
|
else if(eff<0){
|
|
|
|
|
num-=0.9;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return num;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:9,
|
|
|
|
|
result:{
|
|
|
|
|
player:1
|
|
|
|
|
},
|
|
|
|
|
threaten:1.4
|
|
|
|
|
},
|
|
|
|
|
},
|
2016-12-05 02:45:27 +00:00
|
|
|
|
shouji:{
|
|
|
|
|
group:['shouji_begin','shouji_miss'],
|
|
|
|
|
subSkill:{
|
|
|
|
|
begin:{
|
|
|
|
|
trigger:{player:'shaBegin'},
|
|
|
|
|
frequent:true,
|
2016-12-19 09:40:20 +00:00
|
|
|
|
usable:1,
|
2016-12-05 02:45:27 +00:00
|
|
|
|
filter:function(event){
|
|
|
|
|
return event.target.num('h')>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.gain(game.createCard(trigger.target.get('h').randomGet()),'draw');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
miss:{
|
|
|
|
|
trigger:{player:'shaMiss'},
|
|
|
|
|
frequent:true,
|
2016-12-19 09:40:20 +00:00
|
|
|
|
usable:1,
|
2016-12-05 02:45:27 +00:00
|
|
|
|
filter:function(event){
|
|
|
|
|
return event.target.num('e')>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.gain(game.createCard(trigger.target.get('e').randomGet()),'draw');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
yingxi:{
|
|
|
|
|
trigger:{player:'phaseEnd'},
|
|
|
|
|
direct:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return !player.getStat('damage')&&player.num('he',{color:'black'})>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.chooseCardTarget({
|
|
|
|
|
prompt:get.prompt('yingxi'),
|
|
|
|
|
filterCard:{color:'black'},
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return lib.filter.targetEnabled({name:'sha'},player,target);
|
|
|
|
|
},
|
|
|
|
|
position:'he',
|
|
|
|
|
ai1:function(card){
|
|
|
|
|
return 8-ai.get.value(card);
|
|
|
|
|
},
|
|
|
|
|
ai2:function(target){
|
|
|
|
|
return ai.get.effect(target,{name:'sha'},player,player);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
2017-01-28 04:05:35 +00:00
|
|
|
|
player.useCard({name:'sha'},result.cards,result.targets,'yingxi');
|
2016-12-05 02:45:27 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
2017-01-28 04:05:35 +00:00
|
|
|
|
group:'yingxi2',
|
|
|
|
|
},
|
|
|
|
|
yingxi2:{
|
|
|
|
|
trigger:{player:'shaBegin'},
|
|
|
|
|
forced:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.skill=='yingxi'&&event.target.isHealthy();
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.directHit=true;
|
|
|
|
|
}
|
2016-12-05 02:45:27 +00:00
|
|
|
|
},
|
|
|
|
|
guimou:{
|
|
|
|
|
trigger:{player:'damageEnd'},
|
|
|
|
|
check:function(event,player){
|
|
|
|
|
return ai.get.attitude(player,event.source)<=0;
|
|
|
|
|
},
|
|
|
|
|
filter:function(event,player){
|
2017-01-28 04:05:35 +00:00
|
|
|
|
return event.source&&event.source.isAlive()&&event.source!=player&&event.source.num('h')>0;
|
2016-12-05 02:45:27 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
var card=trigger.source.get('h').randomGet();
|
|
|
|
|
if(card){
|
2017-01-13 18:51:13 +00:00
|
|
|
|
player.gain(card,trigger.source);
|
2016-12-05 02:45:27 +00:00
|
|
|
|
if(get.color(card)=='black'){
|
|
|
|
|
trigger.source.$give(card,player);
|
|
|
|
|
event.redo();
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
trigger.source.$give(1,player);
|
|
|
|
|
}
|
|
|
|
|
game.delay(0.5);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
2017-01-25 17:13:45 +00:00
|
|
|
|
maixie:true,
|
2016-12-05 02:45:27 +00:00
|
|
|
|
effect:{
|
|
|
|
|
target:function(card,player,target){
|
|
|
|
|
if(player.hasSkill('jueqing')) return [1,-2];
|
|
|
|
|
if(!target.hasFriend()) return false;
|
2017-01-28 04:05:35 +00:00
|
|
|
|
if(get.tag(card,'damage')&&player.num('h')>1) return [1,0,0,-1];
|
2016-12-05 02:45:27 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-07-16 02:11:40 +00:00
|
|
|
|
peiyu:{
|
2017-01-12 14:50:54 +00:00
|
|
|
|
trigger:{player:['phaseBegin','phaseEnd']},
|
|
|
|
|
direct:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.chooseTarget(get.prompt('peiyu'),function(card,player,target){
|
|
|
|
|
for(var i=1;i<=8;i++){
|
|
|
|
|
if(target.hasSkill('tuteng'+i)) return false;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}).ai=function(target){
|
|
|
|
|
if(player==target&&ai.get.attitude(player,target)>0&&event.parent.triggername=='phaseBegin'){
|
|
|
|
|
return ai.get.attitude(player,target)+10;
|
|
|
|
|
}
|
|
|
|
|
return ai.get.attitude(player,target);
|
|
|
|
|
}
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
player.logSkill('peiyu',result.targets);
|
|
|
|
|
var rand=['tuteng1','tuteng2','tuteng3','tuteng4',
|
|
|
|
|
'tuteng5','tuteng6','tuteng7','tuteng8'];
|
|
|
|
|
result.targets[0].addAdditionalSkill('peiyu',['peiyu2',rand.randomGet()]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
peiyu2:{
|
|
|
|
|
trigger:{player:'damageAfter'},
|
|
|
|
|
forced:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
silent:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
player.removeAdditionalSkill('peiyu');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
peiyu_old:{
|
2016-07-16 02:11:40 +00:00
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
filterCard:true,
|
|
|
|
|
position:'he',
|
|
|
|
|
filterTarget:true,
|
|
|
|
|
check:function(card){
|
|
|
|
|
return 6-ai.get.value(card);
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var rand=['tuteng1','tuteng2','tuteng3','tuteng4',
|
|
|
|
|
'tuteng5','tuteng6','tuteng7','tuteng8'];
|
|
|
|
|
var rand2=[];
|
|
|
|
|
for(var i=0;i<target.skills.length;i++){
|
|
|
|
|
if(rand.contains(target.skills[i])){
|
|
|
|
|
rand.remove(target.skills[i]);
|
|
|
|
|
rand2.push(target.skills[i]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(!rand.length){
|
|
|
|
|
event.finish();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if(!target.storage.peiyu){
|
|
|
|
|
target.storage.peiyu={};
|
|
|
|
|
}
|
|
|
|
|
for(var i in target.storage.peiyu){
|
|
|
|
|
if(target.storage.peiyu[i]==player){
|
|
|
|
|
delete target.storage.peiyu[i];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(rand2.length){
|
|
|
|
|
var randx=[];
|
|
|
|
|
var rand2x=[];
|
|
|
|
|
if(target.isUnderControl(true)){
|
|
|
|
|
var dialog=ui.create.dialog();
|
|
|
|
|
for(var i=0;i<rand.length;i++){
|
|
|
|
|
randx[i]=['','',rand[i]];
|
|
|
|
|
}
|
|
|
|
|
for(var i=0;i<rand2.length;i++){
|
|
|
|
|
rand2x[i]=['','',rand2[i]];
|
|
|
|
|
}
|
|
|
|
|
dialog.add('选择一个图腾');
|
|
|
|
|
dialog.add([randx,'vcard']);
|
|
|
|
|
dialog.add('替换一个已有图腾');
|
|
|
|
|
dialog.add([rand2x,'vcard']);
|
|
|
|
|
target.chooseButton(dialog,2,true).filterButton=function(button){
|
|
|
|
|
if(ui.selected.buttons.length){
|
|
|
|
|
var current=ui.selected.buttons[0].name;
|
|
|
|
|
if(rand.contains(current)){
|
|
|
|
|
return rand2.contains(button.name);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
return rand.contains(button.name);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
};
|
|
|
|
|
for(var i=0;i<dialog.buttons.length;i++){
|
|
|
|
|
var item=dialog.buttons[i]
|
|
|
|
|
if(i==4){
|
|
|
|
|
item.parentNode.insertBefore(document.createElement('br'),item);
|
|
|
|
|
}
|
|
|
|
|
item.style.zoom=0.7;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
var gain;
|
|
|
|
|
if(target.hp<target.maxHp){
|
|
|
|
|
if(rand.contains('tuteng1')){
|
|
|
|
|
gain='tuteng1';
|
|
|
|
|
}
|
|
|
|
|
else if(rand.contains('tuteng3')){
|
|
|
|
|
gain='tuteng3';
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
gain=rand.randomGet();
|
|
|
|
|
}
|
|
|
|
|
target.removeSkill(rand2.randomGet())
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
if(rand2.contains('tuteng1')){
|
|
|
|
|
gain=rand.randomGet();
|
|
|
|
|
target.removeSkill('tuteng1');
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
if(rand.length>1){
|
|
|
|
|
rand.remove('tuteng1');
|
|
|
|
|
}
|
|
|
|
|
gain=rand.randomGet();
|
|
|
|
|
target.removeSkill(rand2.randomGet())
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
target.addSkill(gain);
|
|
|
|
|
target.storage.peiyu[gain]=player;
|
|
|
|
|
game.delay();
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
var gain=rand.randomGet();
|
|
|
|
|
target.addSkill(gain);
|
|
|
|
|
target.storage.peiyu[gain]=player;
|
|
|
|
|
game.delay();
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
'step 1'
|
|
|
|
|
var skill1=result.buttons[0].name;
|
|
|
|
|
var skill2=result.buttons[1].name;
|
2016-08-13 07:28:11 +00:00
|
|
|
|
if(target.hasSkill(skill1)){
|
2016-07-16 02:11:40 +00:00
|
|
|
|
target.removeSkill(skill1);
|
|
|
|
|
target.addSkill(skill2);
|
|
|
|
|
target.storage.peiyu[skill2]=player;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
target.removeSkill(skill2);
|
|
|
|
|
target.addSkill(skill1);
|
|
|
|
|
target.storage.peiyu[skill1]=player;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
expose:0.2,
|
|
|
|
|
order:5,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
for(var i=1;i<=8;i++){
|
|
|
|
|
if(target.hasSkill('tuteng'+i)) return 0;
|
|
|
|
|
}
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2017-01-12 14:50:54 +00:00
|
|
|
|
group:'peiyu_old2'
|
2016-07-16 02:11:40 +00:00
|
|
|
|
},
|
2017-01-12 14:50:54 +00:00
|
|
|
|
peiyu_old2:{
|
2016-07-16 02:11:40 +00:00
|
|
|
|
trigger:{player:'dieBegin'},
|
|
|
|
|
forced:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
content:function(){
|
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
for(var j in game.players[i].storage.peiyu){
|
|
|
|
|
if(game.players[i].storage.peiyu[j]==player){
|
|
|
|
|
game.players[i].removeSkill(j);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-06-25 06:30:34 +00:00
|
|
|
|
wzhanyi:{
|
|
|
|
|
trigger:{player:'phaseUseBefore'},
|
|
|
|
|
check:function(event,player){
|
|
|
|
|
return player.num('h')+2<=player.hp;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
event.cards=get.cards(3);
|
|
|
|
|
trigger.untrigger();
|
|
|
|
|
trigger.finish();
|
|
|
|
|
player.$draw(event.cards.slice(0));
|
|
|
|
|
for(var i=0;i<event.cards.length;i++){
|
|
|
|
|
if(get.type(event.cards[i])=='equip'){
|
|
|
|
|
player.equip(event.cards[i]);
|
|
|
|
|
event.cards.splice(i--,1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
player.gain(event.cards);
|
|
|
|
|
'step 1'
|
|
|
|
|
if(player.num('h','sha')){
|
|
|
|
|
player.chooseToUse('战意:使用一张杀').filterCard=function(card){
|
|
|
|
|
return card.name=='sha'&&get.itemtype(card)=='card';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
'step 2'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
event.goto(1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-06-21 07:47:20 +00:00
|
|
|
|
shengteng:{
|
|
|
|
|
trigger:{source:'damageEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event){
|
|
|
|
|
return event.card&&get.type(event.card)=='trick';
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.gainMaxHp(true);
|
|
|
|
|
player.recover();
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
yuansu:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.maxHp-player.hp>=3;
|
|
|
|
|
},
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return player.canUse('yuansuhuimie',target);
|
|
|
|
|
},
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
multitarget:true,
|
|
|
|
|
multiline:true,
|
|
|
|
|
line:'thunder',
|
|
|
|
|
content:function(){
|
|
|
|
|
player.maxHp=player.hp;
|
|
|
|
|
player.update();
|
|
|
|
|
targets.sort(lib.sort.seat);
|
|
|
|
|
player.useCard({name:'yuansuhuimie'},targets).animate=false;
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-06-20 16:09:42 +00:00
|
|
|
|
chouhuo:{
|
|
|
|
|
unique:true,
|
|
|
|
|
trigger:{player:'phaseBegin'},
|
|
|
|
|
forced:true,
|
|
|
|
|
skillAnimation:true,
|
|
|
|
|
animationColor:'fire',
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(player.storage.nuyan&&player.storage.nuyan.length){
|
|
|
|
|
var num=0;
|
|
|
|
|
for(var i=0;i<lib.inpile.length;i++){
|
|
|
|
|
if(get.tag({name:lib.inpile[i]},'damage')){
|
|
|
|
|
num++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return num<=player.storage.nuyan.length;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.loseMaxHp();
|
|
|
|
|
player.changeHujia(2);
|
|
|
|
|
player.removeSkill('nuyan');
|
|
|
|
|
player.addSkill('nuyan2');
|
2017-01-23 09:28:05 +00:00
|
|
|
|
player.awakenSkill('chouhuo');
|
2016-06-20 16:09:42 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
nuyan2:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:3,
|
|
|
|
|
chooseButton:{
|
|
|
|
|
dialog:function(event,player){
|
|
|
|
|
var list=[];
|
|
|
|
|
for(var i=0;i<lib.inpile.length;i++){
|
|
|
|
|
if(get.tag({name:lib.inpile[i]},'damage')){
|
|
|
|
|
list.push([get.type(lib.inpile[i]),'',lib.inpile[i]]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return ui.create.dialog([list,'vcard']);
|
|
|
|
|
},
|
|
|
|
|
filter:function(button,player){
|
|
|
|
|
return lib.filter.filterCard({name:button.link[2]},player,_status.event.getParent());
|
|
|
|
|
},
|
|
|
|
|
check:function(button){
|
|
|
|
|
var player=_status.event.player;
|
|
|
|
|
var recover=0,lose=1;
|
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
if(!game.players[i].isOut()){
|
|
|
|
|
if(game.players[i].hp<game.players[i].maxHp){
|
|
|
|
|
if(ai.get.attitude(player,game.players[i])>0){
|
|
|
|
|
if(game.players[i].hp<2){
|
|
|
|
|
lose--;
|
|
|
|
|
recover+=0.5;
|
|
|
|
|
}
|
|
|
|
|
lose--;
|
|
|
|
|
recover++;
|
|
|
|
|
}
|
|
|
|
|
else if(ai.get.attitude(player,game.players[i])<0){
|
|
|
|
|
if(game.players[i].hp<2){
|
|
|
|
|
lose++;
|
|
|
|
|
recover-=0.5;
|
|
|
|
|
}
|
|
|
|
|
lose++;
|
|
|
|
|
recover--;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
if(ai.get.attitude(player,game.players[i])>0){
|
|
|
|
|
lose--;
|
|
|
|
|
}
|
|
|
|
|
else if(ai.get.attitude(player,game.players[i])<0){
|
|
|
|
|
lose++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(button.link[2]=='nanman'||button.link[2]=='nanman'||button.link[2]=='yuansuhuimie'||
|
|
|
|
|
button.link[2]=='chiyuxi'||button.link[2]=='jingleishan'){
|
|
|
|
|
if(lose>recover&&lose>0){
|
|
|
|
|
return 2;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return 1;
|
|
|
|
|
},
|
|
|
|
|
backup:function(links,player){
|
|
|
|
|
return {
|
|
|
|
|
filterCard:function(){return false},
|
|
|
|
|
selectCard:-1,
|
|
|
|
|
popname:true,
|
|
|
|
|
viewAs:{name:links[0][2]},
|
|
|
|
|
onuse:function(result,player){
|
|
|
|
|
player.loseHp();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
prompt:function(links,player){
|
|
|
|
|
return '失去一点体力,视为使用一张'+get.translation(links[0][2]);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:6,
|
|
|
|
|
result:{
|
|
|
|
|
player:function(player){
|
|
|
|
|
if(player.hp>1) return 1;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-06-20 12:02:56 +00:00
|
|
|
|
nuyan:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.num('he',{color:'red'})>0
|
|
|
|
|
},
|
|
|
|
|
init:function(player){
|
|
|
|
|
player.storage.nuyan=[];
|
|
|
|
|
},
|
|
|
|
|
chooseButton:{
|
|
|
|
|
dialog:function(event,player){
|
|
|
|
|
var list=[];
|
|
|
|
|
for(var i=0;i<lib.inpile.length;i++){
|
|
|
|
|
if(get.tag({name:lib.inpile[i]},'damage')){
|
|
|
|
|
list.push([get.type(lib.inpile[i]),'',lib.inpile[i]]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return ui.create.dialog([list,'vcard']);
|
|
|
|
|
},
|
|
|
|
|
filter:function(button,player){
|
|
|
|
|
if(player.storage.nuyan.contains(button.link[2])) return false;
|
|
|
|
|
return lib.filter.filterCard({name:button.link[2]},player,_status.event.getParent());
|
|
|
|
|
},
|
|
|
|
|
check:function(button){
|
|
|
|
|
var player=_status.event.player;
|
|
|
|
|
var recover=0,lose=1;
|
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
if(!game.players[i].isOut()){
|
|
|
|
|
if(game.players[i].hp<game.players[i].maxHp){
|
|
|
|
|
if(ai.get.attitude(player,game.players[i])>0){
|
|
|
|
|
if(game.players[i].hp<2){
|
|
|
|
|
lose--;
|
|
|
|
|
recover+=0.5;
|
|
|
|
|
}
|
|
|
|
|
lose--;
|
|
|
|
|
recover++;
|
|
|
|
|
}
|
|
|
|
|
else if(ai.get.attitude(player,game.players[i])<0){
|
|
|
|
|
if(game.players[i].hp<2){
|
|
|
|
|
lose++;
|
|
|
|
|
recover-=0.5;
|
|
|
|
|
}
|
|
|
|
|
lose++;
|
|
|
|
|
recover--;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
if(ai.get.attitude(player,game.players[i])>0){
|
|
|
|
|
lose--;
|
|
|
|
|
}
|
|
|
|
|
else if(ai.get.attitude(player,game.players[i])<0){
|
|
|
|
|
lose++;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(button.link[2]=='nanman'||button.link[2]=='nanman'||button.link[2]=='yuansuhuimie'||
|
|
|
|
|
button.link[2]=='chiyuxi'||button.link[2]=='jingleishan'){
|
|
|
|
|
if(lose>recover&&lose>0){
|
|
|
|
|
return 2;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return 1;
|
|
|
|
|
},
|
|
|
|
|
backup:function(links,player){
|
|
|
|
|
return {
|
|
|
|
|
filterCard:{color:'red'},
|
|
|
|
|
selectCard:1,
|
|
|
|
|
position:'he',
|
|
|
|
|
popname:true,
|
|
|
|
|
viewAs:{name:links[0][2]},
|
|
|
|
|
ai1:function(card){
|
|
|
|
|
return 6-ai.get.value(card);
|
|
|
|
|
},
|
|
|
|
|
onuse:function(result,player){
|
|
|
|
|
player.storage.nuyan.add(result.card.name);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
prompt:function(links,player){
|
|
|
|
|
return '将一张红色牌当作'+get.translation(links[0][2])+'使用';
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:6,
|
|
|
|
|
result:{
|
|
|
|
|
player:1
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-05-29 05:34:06 +00:00
|
|
|
|
duxin:{
|
|
|
|
|
trigger:{player:['phaseBegin','phaseEnd']},
|
|
|
|
|
frequent:true,
|
2017-01-15 16:58:11 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return !player.num('h',{type:'hsdusu'});
|
|
|
|
|
},
|
2016-05-29 05:34:06 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
var list=['hsdusu_xueji','hsdusu_huangxuecao','hsdusu_kuyecao','hsdusu_shinancao','hsdusu_huoyanhua'];
|
2016-07-02 03:05:40 +00:00
|
|
|
|
if(typeof lib.cardType.hslingjian!='number'){
|
|
|
|
|
list.remove('hsdusu_kuyecao');
|
|
|
|
|
}
|
2016-05-29 05:34:06 +00:00
|
|
|
|
var name=list.randomGet();
|
|
|
|
|
if(name=='hsdusu_huoyanhua'){
|
|
|
|
|
player.gain(game.createCard({name:name,nature:'fire'}),'draw');
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
player.gain(game.createCard(name),'draw');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:1.6
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
hsdusu_shinancao:{
|
|
|
|
|
mark:true,
|
|
|
|
|
marktext:'楠',
|
|
|
|
|
nopop:true,
|
|
|
|
|
intro:{
|
|
|
|
|
content:'下一次造成的伤害+1'
|
|
|
|
|
},
|
2016-08-28 00:30:25 +00:00
|
|
|
|
logv:false,
|
2016-05-29 05:34:06 +00:00
|
|
|
|
trigger:{source:'damageBegin'},
|
|
|
|
|
forced:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.num++;
|
|
|
|
|
player.removeSkill('hsdusu_shinancao');
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-09-29 17:23:12 +00:00
|
|
|
|
kuangluan_old:{
|
|
|
|
|
group:['kuangluan_count1','kuangluan_count2','kuangluan_use'],
|
|
|
|
|
subSkill:{
|
|
|
|
|
count1:{
|
|
|
|
|
trigger:{player:'useCard'},
|
|
|
|
|
forced:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
silent:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return _status.currentPhase==player&&get.type(event.card)=='trick';
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.storage.kuangluan++;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
count2:{
|
|
|
|
|
trigger:{player:'phaseBegin'},
|
|
|
|
|
forced:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
silent:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
player.storage.kuangluan=0;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
use:{
|
|
|
|
|
trigger:{player:'phaseUseEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.storage.kuangluan>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
var list=[];
|
|
|
|
|
for(var i=0;i<lib.inpile.length;i++){
|
|
|
|
|
if(lib.filter.filterCard({name:lib.inpile[i]},player)){
|
|
|
|
|
var info=lib.card[lib.inpile[i]];
|
|
|
|
|
if(info.type=='trick'&&!info.multitarget&&!info.notarget){
|
|
|
|
|
if(Array.isArray(info.selectTarget)){
|
|
|
|
|
if(info.selectTarget[0]>0&&info.selectTarget[1]>=info.selectTarget[0]){
|
|
|
|
|
list.push(lib.inpile[i]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if(typeof info.selectTarget=='number'){
|
|
|
|
|
list.push(lib.inpile[i]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
var n=player.storage.kuangluan;
|
|
|
|
|
delete player.storage.kuangluan;
|
|
|
|
|
while(list.length){
|
|
|
|
|
var card={name:list.randomRemove()};
|
|
|
|
|
var info=get.info(card);
|
|
|
|
|
var targets=[];
|
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
if(lib.filter.filterTarget(card,player,game.players[i])){
|
|
|
|
|
targets.push(game.players[i]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(targets.length){
|
|
|
|
|
targets.sort(lib.sort.seat);
|
|
|
|
|
if(info.selectTarget==-1){
|
|
|
|
|
player.useCard(card,targets);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
var num=info.selectTarget;
|
|
|
|
|
if(Array.isArray(num)){
|
|
|
|
|
if(targets.length<num[0]) continue;
|
|
|
|
|
num=num[0]+Math.floor(Math.random()*(num[1]-num[0]+1));
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
if(targets.length<num) continue;
|
|
|
|
|
}
|
|
|
|
|
player.useCard(card,targets.randomGets(num));
|
|
|
|
|
}
|
|
|
|
|
if(--n<=0) break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-05-29 02:40:12 +00:00
|
|
|
|
kuangluan:{
|
|
|
|
|
trigger:{player:'damageEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
priority:10,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.source&&event.source.isAlive()&&event.source!=player;
|
|
|
|
|
},
|
|
|
|
|
intro:{
|
|
|
|
|
content:'players'
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.source.goMad('phaseAfter');
|
|
|
|
|
if(!player.storage.kuangluan){
|
|
|
|
|
player.storage.kuangluan=[];
|
|
|
|
|
}
|
|
|
|
|
player.storage.kuangluan.add(trigger.source);
|
|
|
|
|
player.markSkill('kuangluan');
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:0.3
|
|
|
|
|
},
|
|
|
|
|
group:['kuangluan2','kuangluan3']
|
|
|
|
|
},
|
|
|
|
|
kuangluan2:{
|
|
|
|
|
trigger:{player:'phaseBegin'},
|
|
|
|
|
priority:10,
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.storage.kuangluan&&player.storage.kuangluan.length>=2;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.recover(player.maxHp);
|
|
|
|
|
player.goMad('phaseAfter');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
kuangluan3:{
|
|
|
|
|
trigger:{player:'phaseBegin'},
|
|
|
|
|
forced:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
silent:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
player.storage.kuangluan=[];
|
|
|
|
|
player.unmarkSkill('kuangluan');
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-05-28 23:59:49 +00:00
|
|
|
|
xiubu:{
|
|
|
|
|
trigger:{player:'equipEnd'},
|
|
|
|
|
frequent:true,
|
|
|
|
|
filter:function(event){
|
2016-07-30 15:08:21 +00:00
|
|
|
|
return lib.inpile.contains(event.card.name)&&get.subtype(event.card)=='equip1'&&typeof lib.cardType.hslingjian=='number';
|
2016-05-28 23:59:49 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
var num=1;
|
|
|
|
|
var info=get.info(trigger.card);
|
|
|
|
|
if(info&&info.distance&&typeof info.distance.attackFrom=='number'){
|
|
|
|
|
num=1-info.distance.attackFrom;
|
|
|
|
|
}
|
|
|
|
|
if(num<1){
|
|
|
|
|
num=1;
|
|
|
|
|
}
|
|
|
|
|
var list=['hslingjian_zhongxinghujia','hslingjian_xuanfengzhiren','hslingjian_yinmilichang',
|
2017-01-28 02:03:53 +00:00
|
|
|
|
'hslingjian_shengxiuhaojiao','hslingjian_xingtigaizao','hslingjian_shijianhuisu'];
|
|
|
|
|
// if(get.mode()=='stone'){
|
|
|
|
|
// list.remove('hslingjian_jinjilengdong');
|
|
|
|
|
// }
|
2016-05-28 23:59:49 +00:00
|
|
|
|
var cards=[];
|
|
|
|
|
while(num--){
|
|
|
|
|
cards.push(game.createCard(list.randomGet()));
|
|
|
|
|
}
|
|
|
|
|
player.gain(cards,'gain2');
|
|
|
|
|
},
|
|
|
|
|
threaten:1.3
|
|
|
|
|
},
|
|
|
|
|
zengli:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filterTarget:function(card,player,target){
|
2016-07-01 01:31:02 +00:00
|
|
|
|
return target!=player&&!target.isMin();
|
2016-05-28 23:59:49 +00:00
|
|
|
|
},
|
|
|
|
|
delay:false,
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var list=[];
|
|
|
|
|
for(var i=0;i<lib.inpile.length;i++){
|
|
|
|
|
if(lib.card[lib.inpile[i]].subtype=='equip1'){
|
|
|
|
|
list.push(lib.inpile[i]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(!list.length){
|
|
|
|
|
event.finish();
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
event.card1=game.createCard(list.randomGet());
|
|
|
|
|
event.card2=game.createCard(list.randomGet());
|
|
|
|
|
player.$draw(event.card1);
|
|
|
|
|
target.$draw(event.card2);
|
|
|
|
|
game.delay();
|
|
|
|
|
'step 1'
|
|
|
|
|
player.equip(event.card1);
|
|
|
|
|
'step 2'
|
|
|
|
|
target.equip(event.card2);
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:11,
|
|
|
|
|
result:{
|
|
|
|
|
player:1,
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
if(target.get('e','1')) return 0;
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-05-28 14:54:09 +00:00
|
|
|
|
mobao:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(!player.storage.mobao) return false;
|
|
|
|
|
if(!player.num('h',{color:'black'})) return false;
|
|
|
|
|
for(var i=0;i<player.storage.mobao.length;i++){
|
|
|
|
|
if(player.storage.mobao[i].isAlive()) return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return player.storage.mobao.contains(target);
|
|
|
|
|
},
|
|
|
|
|
position:'he',
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
selectCard:[1,3],
|
|
|
|
|
check:function(card){
|
2016-05-30 08:07:55 +00:00
|
|
|
|
return 8-ai.get.value(card);
|
2016-05-28 14:54:09 +00:00
|
|
|
|
},
|
|
|
|
|
filterCard:{color:'black'},
|
|
|
|
|
line:'thunder',
|
|
|
|
|
content:function(){
|
|
|
|
|
target.damage('thunder',cards.length);
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:9,
|
|
|
|
|
threaten:0.7,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
2016-05-30 08:07:55 +00:00
|
|
|
|
return ai.get.damageEffect(target,player,target,'thunder');
|
2016-05-28 14:54:09 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
group:['mobao2','mobao3']
|
|
|
|
|
},
|
|
|
|
|
mobao2:{
|
|
|
|
|
trigger:{player:'damageEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
silent:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.source&&event.source!=player;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
if(!player.storage.mobao){
|
|
|
|
|
player.storage.mobao=[];
|
|
|
|
|
}
|
|
|
|
|
player.storage.mobao.add(trigger.source);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mobao3:{
|
|
|
|
|
trigger:{player:'phaseEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
silent:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
content:function(){
|
|
|
|
|
delete player.storage.mobao;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
xianji:{
|
|
|
|
|
unique:true,
|
|
|
|
|
forceunique:true,
|
|
|
|
|
global:'xianji2'
|
|
|
|
|
},
|
|
|
|
|
xianji2:{
|
|
|
|
|
trigger:{player:'phaseEnd'},
|
|
|
|
|
direct:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(player.hasSkill('xianji')) return false;
|
|
|
|
|
if(player.hasSkill('xianji3')) return true;
|
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
if(game.players[i].hasSkill('xianji')) return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.removeSkill('xianji3');
|
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
if(game.players[i].hasSkill('xianji')){
|
|
|
|
|
event.target=game.players[i];break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(event.target){
|
2017-01-18 03:00:22 +00:00
|
|
|
|
player.chooseToDiscard([1,2],'献祭:是否弃置1~2张手牌并令'+get.translation(event.target)+'摸等量的牌?').set('ai',function(card){
|
2016-05-28 14:54:09 +00:00
|
|
|
|
if(ai.get.attitude(_status.event.player,_status.event.getParent().target)>1){
|
|
|
|
|
return 6-ai.get.value(card);
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}).set('logSkill',['xianji',event.target]);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
event.target.draw(result.cards.length);
|
|
|
|
|
player.storage.xianji3=event.target;
|
|
|
|
|
player.addSkill('xianji3');
|
2017-01-08 04:09:34 +00:00
|
|
|
|
player.addExpose(0.2);
|
2016-05-28 14:54:09 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
xianji3:{
|
|
|
|
|
mark:'character',
|
|
|
|
|
intro:{
|
|
|
|
|
content:function(storage,player){
|
|
|
|
|
return '每当'+get.translation(storage)+'对你使用一张牌,你摸一张牌';
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
trigger:{target:'useCardToBegin'},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.player==player.storage.xianji3;
|
|
|
|
|
},
|
|
|
|
|
forced:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
player.draw();
|
|
|
|
|
},
|
|
|
|
|
},
|
2016-04-04 16:48:27 +00:00
|
|
|
|
tanmi:{
|
|
|
|
|
trigger:{global:'phaseEnd'},
|
|
|
|
|
filter:function(event,player){
|
2016-04-06 16:26:44 +00:00
|
|
|
|
return player.num('h')==0&&event.player!=player;
|
2016-04-04 16:48:27 +00:00
|
|
|
|
},
|
2016-04-06 16:26:44 +00:00
|
|
|
|
frequent:true,
|
2016-04-04 16:48:27 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.draw(2);
|
|
|
|
|
'step 1'
|
|
|
|
|
player.chooseToUse();
|
2016-04-06 16:26:44 +00:00
|
|
|
|
'step 2'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
event.goto(1);
|
|
|
|
|
}
|
2016-04-04 16:48:27 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
2016-03-22 06:45:57 +00:00
|
|
|
|
xueren:{
|
|
|
|
|
trigger:{source:'damageEnd'},
|
|
|
|
|
filter:function(event){
|
|
|
|
|
return event.card&&event.card.name=='sha'&&event.player.isAlive();
|
|
|
|
|
},
|
|
|
|
|
check:function(event,player){
|
|
|
|
|
if(ai.get.attitude(player,event.player)>=0) return false;
|
|
|
|
|
if(player.hp>2) return true;
|
|
|
|
|
if(player.hp<2) return false;
|
|
|
|
|
return player.hp>=event.player.hp;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
trigger.player.loseHp();
|
|
|
|
|
'step 1'
|
|
|
|
|
player.loseHp();
|
|
|
|
|
'step 2'
|
|
|
|
|
player.draw(2);
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-08-11 11:52:17 +00:00
|
|
|
|
maoxian:{
|
2016-07-29 11:42:04 +00:00
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:2,
|
|
|
|
|
direct:true,
|
|
|
|
|
delay:false,
|
|
|
|
|
unique:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var list=get.gainableSkills();
|
|
|
|
|
list.remove('maoxian');
|
2016-09-27 03:26:24 +00:00
|
|
|
|
list=list.randomGets(3);
|
|
|
|
|
event.skillai=function(){
|
|
|
|
|
return list.randomGet();
|
|
|
|
|
};
|
|
|
|
|
if(event.isMine()){
|
|
|
|
|
var dialog=ui.create.dialog();
|
|
|
|
|
dialog.add('选择获得一项技能');
|
|
|
|
|
var clickItem=function(){
|
|
|
|
|
_status.event._result=this.link;
|
|
|
|
|
dialog.close();
|
|
|
|
|
game.resume();
|
|
|
|
|
};
|
|
|
|
|
for(var i=0;i<list.length;i++){
|
|
|
|
|
if(lib.translate[list[i]+'_info']){
|
|
|
|
|
var translation=get.translation(list[i]);
|
|
|
|
|
if(translation[0]=='新'&&translation.length==3){
|
|
|
|
|
translation=translation.slice(1,3);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
translation=translation.slice(0,2);
|
|
|
|
|
}
|
|
|
|
|
var item=dialog.add('<div class="popup" style="width:50%;display:inline-block"><div class="skill">【'+
|
|
|
|
|
translation+'】</div><div>'+lib.translate[list[i]+'_info']+'</div></div>');
|
|
|
|
|
item.firstChild.addEventListener('click',clickItem);
|
|
|
|
|
item.firstChild.link=list[i];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
dialog.add(ui.create.div('.placeholder'));
|
|
|
|
|
event.switchToAuto=function(){
|
|
|
|
|
event._result=event.skillai();
|
|
|
|
|
dialog.close();
|
|
|
|
|
game.resume();
|
|
|
|
|
};
|
|
|
|
|
_status.imchoosing=true;
|
|
|
|
|
game.pause();
|
2016-07-29 11:42:04 +00:00
|
|
|
|
}
|
2016-09-27 03:26:24 +00:00
|
|
|
|
else{
|
|
|
|
|
event._result=event.skillai();
|
|
|
|
|
}
|
|
|
|
|
'step 1'
|
|
|
|
|
_status.imchoosing=false;
|
|
|
|
|
var link=result;
|
|
|
|
|
player.addAdditionalSkill('maoxian',link);
|
|
|
|
|
player.popup(link);
|
|
|
|
|
game.log(player,'获得了技能','【'+get.translation(link)+'】');
|
|
|
|
|
player.checkMarks();
|
|
|
|
|
player.markSkill('maoxian');
|
|
|
|
|
game.delay();
|
2016-07-29 11:42:04 +00:00
|
|
|
|
},
|
|
|
|
|
intro:{
|
|
|
|
|
content:function(storage,player){
|
|
|
|
|
return '当前技能:'+get.translation(player.additionalSkills.maoxian);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:11,
|
|
|
|
|
result:{
|
|
|
|
|
player:function(player){
|
|
|
|
|
if(player.getStat().skill.maoxian) return 0;
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-08-11 11:52:17 +00:00
|
|
|
|
maoxian_old:{
|
2016-03-22 06:45:57 +00:00
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:2,
|
|
|
|
|
direct:true,
|
|
|
|
|
delay:false,
|
|
|
|
|
unique:true,
|
|
|
|
|
getSkills:function(player,current){
|
|
|
|
|
var names=[];
|
|
|
|
|
var list=[];
|
|
|
|
|
var map={};
|
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
if(game.players[i]==player) continue;
|
|
|
|
|
if(game.players[i].name&&lib.character[game.players[i].name]){
|
|
|
|
|
names.add(game.players[i].name);
|
|
|
|
|
}
|
|
|
|
|
if(game.players[i].name1&&lib.character[game.players[i].name1]){
|
|
|
|
|
names.add(game.players[i].name1);
|
|
|
|
|
}
|
|
|
|
|
if(game.players[i].name2&&lib.character[game.players[i].name2]){
|
|
|
|
|
names.add(game.players[i].name2);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
for(var i=0;i<names.length;i++){
|
|
|
|
|
var info=lib.character[names[i]];
|
|
|
|
|
if(info){
|
|
|
|
|
var skills=info[3];
|
|
|
|
|
for(var j=0;j<skills.length;j++){
|
|
|
|
|
if(skills[j]==current) continue;
|
|
|
|
|
if(lib.translate[skills[j]+'_info']&&lib.skill[skills[j]]&&
|
|
|
|
|
!lib.skill[skills[j]].unique){
|
|
|
|
|
list.add(skills[j]);
|
|
|
|
|
map[skills[j]]=names[i];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return [list,map];
|
|
|
|
|
},
|
|
|
|
|
onremove:function(player){
|
|
|
|
|
delete player.additionalSkills.maoxian;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var lm=lib.skill.maoxian.getSkills(player,player.additionalSkills.maoxian);
|
|
|
|
|
var list=lm[0];
|
|
|
|
|
event.map=lm[1];
|
|
|
|
|
if(list.length){
|
|
|
|
|
player.chooseControl(list.randomGets(3)).prompt='选择一项作为你的技能';
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.control){
|
2016-03-30 07:31:51 +00:00
|
|
|
|
game.stopCountChoose();
|
2016-03-22 06:45:57 +00:00
|
|
|
|
var link=result.control;
|
|
|
|
|
player.addSkill(link);
|
|
|
|
|
player.skills.remove(link);
|
2016-07-01 07:34:40 +00:00
|
|
|
|
if(player.additionalSkills.maoxian){
|
|
|
|
|
player.removeSkill(player.additionalSkills.maoxian);
|
|
|
|
|
}
|
2016-03-22 06:45:57 +00:00
|
|
|
|
player.additionalSkills.maoxian=link;
|
|
|
|
|
player.popup(link);
|
2016-04-06 10:34:18 +00:00
|
|
|
|
game.log(player,'获得了技能','【'+get.translation(link)+'】')
|
2016-03-22 06:45:57 +00:00
|
|
|
|
var name=event.map[link];
|
|
|
|
|
var target;
|
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
if(game.players[i]==player) continue;
|
|
|
|
|
if(game.players[i].name==name||
|
|
|
|
|
game.players[i].name1==name||
|
|
|
|
|
game.players[i].name2==name){
|
|
|
|
|
target=game.players[i];break;
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-04-06 10:34:18 +00:00
|
|
|
|
if(target&&(target.name==name||(target.name2==name&&!target.classList.contains('unseen2')))){
|
2016-03-22 06:45:57 +00:00
|
|
|
|
player.line(target,'green');
|
2016-04-05 09:30:38 +00:00
|
|
|
|
player.markSkillCharacter('maoxian',target,get.translation(link),lib.translate[link+'_info']);
|
2016-03-22 06:45:57 +00:00
|
|
|
|
}
|
|
|
|
|
player.checkMarks();
|
|
|
|
|
game.delay();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:11,
|
|
|
|
|
result:{
|
|
|
|
|
player:function(player){
|
|
|
|
|
if(player.getStat().skill.maoxian) return 0;
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
yiwen:{
|
|
|
|
|
trigger:{target:'useCardToBegin'},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.targets&&event.targets.length==1&&
|
|
|
|
|
event.target!=event.player&&_status.currentPhase==event.player&&
|
2016-08-13 07:28:11 +00:00
|
|
|
|
!event.player.hasSkill('yiwen2');
|
2016-03-22 06:45:57 +00:00
|
|
|
|
},
|
|
|
|
|
forced:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
player.gain(game.createCard(trigger.card),'gain2');
|
|
|
|
|
trigger.player.addTempSkill('yiwen2','phaseAfter');
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:0.7
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
yiwen2:{},
|
|
|
|
|
tanbao:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(player.hp==player.maxHp) return false;
|
|
|
|
|
var hs=player.get('h');
|
|
|
|
|
if(hs.length==0) return false;
|
|
|
|
|
var types=[];
|
|
|
|
|
for(var i=0;i<hs.length;i++){
|
|
|
|
|
var type=get.type(hs[i],'trick');
|
|
|
|
|
if(types.contains(type)){
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
types.push(type);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.showHandcards();
|
|
|
|
|
'step 1'
|
|
|
|
|
player.recover(player.num('h'));
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:10,
|
|
|
|
|
result:{
|
|
|
|
|
player:1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tanbao_old:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:10,
|
|
|
|
|
filterCard:true,
|
|
|
|
|
position:'he',
|
|
|
|
|
check:function(card){
|
|
|
|
|
if(_status.event.player.hp==1){
|
|
|
|
|
return 7-ai.get.value(card);
|
|
|
|
|
}
|
|
|
|
|
return 6-ai.get.value(card);
|
|
|
|
|
},
|
|
|
|
|
selectCard:3,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.num('he')>=3;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
event.cards=get.cards(3);
|
|
|
|
|
if(!event.isMine()) player.showCards(event.cards);
|
|
|
|
|
'step 1'
|
|
|
|
|
player.chooseCardButton('获得任意张类别不同的牌',[1,3],event.cards).filterButton=function(button){
|
|
|
|
|
var type=get.type(button.link,'trick');
|
|
|
|
|
for(var i=0;i<ui.selected.buttons.length;i++){
|
|
|
|
|
if(get.type(ui.selected.buttons[i].link,'trick')==type){
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
'step 2'
|
|
|
|
|
if(result.bool) player.gain(result.links,'gain2');
|
|
|
|
|
var types=[];
|
|
|
|
|
for(var i=0;i<event.cards.length;i++){
|
|
|
|
|
types.add(get.type(event.cards[i],'trick'));
|
|
|
|
|
}
|
|
|
|
|
if(types.length==3){
|
|
|
|
|
player.recover(player.maxHp-player.hp);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:5,
|
|
|
|
|
result:{
|
|
|
|
|
player:1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
qianghuax:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filterCard:function(card){
|
|
|
|
|
var type=get.type(card,'trick');
|
|
|
|
|
for(var i=0;i<ui.selected.cards.length;i++){
|
|
|
|
|
if(type==get.type(ui.selected.cards[i],'trick')) return false;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
position:'he',
|
|
|
|
|
check:function(card){
|
|
|
|
|
return 8-ai.get.value(card);
|
|
|
|
|
},
|
|
|
|
|
selectCard:[1,Infinity],
|
|
|
|
|
content:function(){
|
|
|
|
|
var cards2=[];
|
|
|
|
|
for(var i=0;i<cards.length;i++){
|
|
|
|
|
var type=get.type(cards[i],'trick');
|
|
|
|
|
var list=game.findCards(function(name){
|
|
|
|
|
if(cards[i].name==name) return;
|
|
|
|
|
if(get.type({name:name},'trick')==type){
|
|
|
|
|
return ai.get.value({name:name})>ai.get.value(cards[i]);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
if(!list.length){
|
|
|
|
|
list=game.findCards(function(name){
|
|
|
|
|
if(cards[i].name==name) return;
|
|
|
|
|
if(get.type({name:name},'trick')==type){
|
|
|
|
|
return ai.get.value({name:name})==ai.get.value(cards[i]);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
if(!list.length){
|
|
|
|
|
list=[cards[i].name];
|
|
|
|
|
}
|
|
|
|
|
cards2.push(game.createCard(list.randomGet()));
|
|
|
|
|
}
|
|
|
|
|
player.gain(cards2);
|
|
|
|
|
player.$draw(cards2);
|
|
|
|
|
game.log(player,'获得了',cards2);
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:8,
|
|
|
|
|
result:{
|
|
|
|
|
player:1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-03-19 10:39:09 +00:00
|
|
|
|
zhuizong:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filterCard:true,
|
|
|
|
|
position:'he',
|
|
|
|
|
selectCard:[1,Infinity],
|
|
|
|
|
check:function(card){
|
|
|
|
|
if(ui.selected.cards.length) return 0;
|
|
|
|
|
return 6-ai.get.value(card)
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
event.cards=get.cards(4*cards.length);
|
|
|
|
|
player.chooseCardButton('获得其中的一张牌',true,event.cards,true);
|
|
|
|
|
'step 1'
|
|
|
|
|
player.gain(result.links,'draw');
|
|
|
|
|
event.cards.remove(result.links[0]);
|
|
|
|
|
for(var i=0;i<event.cards.length;i++){
|
|
|
|
|
ui.discardPile.appendChild(event.cards[i]);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:8,
|
|
|
|
|
result:{
|
|
|
|
|
player:1
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
xunbao:{
|
2016-05-30 09:51:40 +00:00
|
|
|
|
trigger:{player:'phaseBegin'},
|
2016-05-28 09:00:48 +00:00
|
|
|
|
frequent:true,
|
2016-03-19 10:39:09 +00:00
|
|
|
|
filter:function(event,player){
|
2016-08-13 07:28:11 +00:00
|
|
|
|
return !player.hasSkill('xunbao2');
|
2016-03-19 10:39:09 +00:00
|
|
|
|
},
|
2016-05-30 09:51:40 +00:00
|
|
|
|
priority:1,
|
2016-05-28 09:00:48 +00:00
|
|
|
|
// filterCard:true,
|
|
|
|
|
// check:function(card){
|
|
|
|
|
// return 6-ai.get.value(card);
|
|
|
|
|
// },
|
|
|
|
|
// position:'he',
|
2016-03-19 10:39:09 +00:00
|
|
|
|
content:function(){
|
2016-05-28 09:00:48 +00:00
|
|
|
|
'step 0'
|
|
|
|
|
event.card=game.createCard('hsbaowu_cangbaotu');
|
|
|
|
|
player.storage.xunbao2=event.card;
|
|
|
|
|
player.storage.xunbao2_markcount=player.storage.xunbao2.number;
|
|
|
|
|
// player.$draw(player.storage.xunbao2);
|
2016-03-19 10:39:09 +00:00
|
|
|
|
player.addSkill('xunbao2');
|
2016-05-28 09:00:48 +00:00
|
|
|
|
game.delay(2);
|
|
|
|
|
|
|
|
|
|
event.node=event.card.copy('thrown','center','thrownhighlight',ui.arena).animate('start');
|
|
|
|
|
ui.arena.classList.add('thrownhighlight');
|
|
|
|
|
game.addVideo('thrownhighlight1');
|
|
|
|
|
game.addVideo('centernode',null,get.cardInfo(event.card));
|
|
|
|
|
'step 1'
|
|
|
|
|
game.addVideo('deletenode',player,[get.cardInfo(event.node)]);
|
|
|
|
|
event.node.delete();
|
|
|
|
|
event.node.style.transform='scale(0)';
|
|
|
|
|
game.addVideo('thrownhighlight2');
|
|
|
|
|
ui.arena.classList.remove('thrownhighlight');
|
2016-03-19 10:39:09 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:3,
|
|
|
|
|
result:{
|
|
|
|
|
player:1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
xunbao2:{
|
2016-05-28 09:00:48 +00:00
|
|
|
|
mark:true,
|
|
|
|
|
marktext:'宝',
|
2016-03-19 10:39:09 +00:00
|
|
|
|
intro:{
|
|
|
|
|
content:'card',
|
|
|
|
|
},
|
|
|
|
|
direct:true,
|
|
|
|
|
trigger:{player:'phaseBegin'},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
var hs=player.get('he');
|
|
|
|
|
for(var i=0;i<hs.length;i++){
|
|
|
|
|
if(hs[i].number==player.storage.xunbao2.number) return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.chooseToDiscard('是否弃置一张点数为'+player.storage.xunbao2.number+'的牌获得藏宝图?','he',function(card){
|
|
|
|
|
return card.number==player.storage.xunbao2.number;
|
|
|
|
|
}).ai=function(card){
|
|
|
|
|
return 7-ai.get.value(card);
|
|
|
|
|
};
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
player.gain(player.storage.xunbao2,'gain2');
|
|
|
|
|
game.log(player,'获得了',player.storage.xunbao2);
|
|
|
|
|
delete player.storage.xunbao2;
|
|
|
|
|
player.removeSkill('xunbao2');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
hsbaowu_cangbaotu:{
|
|
|
|
|
trigger:{player:'phaseEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
content:function(){
|
|
|
|
|
player.gain(game.createCard('hsbaowu_huangjinyuanhou'),'gain2');
|
|
|
|
|
player.removeSkill('hsbaowu_cangbaotu');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
hsbaowu_huangjinyuanhou:{
|
|
|
|
|
mark:'card',
|
2016-05-30 09:51:40 +00:00
|
|
|
|
nopup:true,
|
2016-03-19 10:39:09 +00:00
|
|
|
|
intro:{
|
2016-08-07 09:38:27 +00:00
|
|
|
|
content:'锁定技,你不能成为其他角色的卡牌的目标'
|
2016-03-19 10:39:09 +00:00
|
|
|
|
},
|
2016-08-07 09:38:27 +00:00
|
|
|
|
mod:{
|
|
|
|
|
targetEnabled:function(card,player,target){
|
|
|
|
|
if(player!=target) return false;
|
|
|
|
|
}
|
2016-03-19 10:39:09 +00:00
|
|
|
|
},
|
|
|
|
|
group:'hsbaowu_huangjinyuanhou2'
|
|
|
|
|
},
|
|
|
|
|
hsbaowu_huangjinyuanhou2:{
|
|
|
|
|
trigger:{player:'phaseBegin'},
|
|
|
|
|
forced:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
silent:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
player.removeSkill('hsbaowu_huangjinyuanhou');
|
|
|
|
|
delete player.storage.hsbaowu_huangjinyuanhou;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
xieneng:{
|
|
|
|
|
trigger:{player:'phaseEnd'},
|
|
|
|
|
direct:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var list=[['','','hsshenqi_morijingxiang'],
|
|
|
|
|
['','','hsshenqi_kongbusangzhong'],
|
|
|
|
|
['','','hsshenqi_nengliangzhiguang']];
|
2016-06-17 15:44:19 +00:00
|
|
|
|
var dialog=ui.create.dialog('邪能:选择一张神器牌并获得之',[list,'vcard'],'hidden');
|
2016-03-19 10:39:09 +00:00
|
|
|
|
player.chooseButton(dialog).ai=function(){return Math.random();};
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.buttons){
|
|
|
|
|
player.logSkill('xieneng');
|
|
|
|
|
player.gain(game.createCard(result.buttons[0].link[2]),'draw');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:1.3,
|
|
|
|
|
effect:{
|
|
|
|
|
target:function(card,player,target){
|
|
|
|
|
if(card.name=='guiyoujie') return [0,1];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-03-18 16:34:46 +00:00
|
|
|
|
fbeifa:{
|
|
|
|
|
trigger:{player:'loseEnd'},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(player.num('h')) return false;
|
|
|
|
|
if(player.storage.fbeifa>=3) return false;
|
|
|
|
|
for(var i=0;i<event.cards.length;i++){
|
|
|
|
|
if(event.cards[i].original=='h') return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
direct:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
2016-09-20 05:06:35 +00:00
|
|
|
|
player.chooseTarget(get.prompt('fbeifa'),function(card,player,target){
|
2016-03-18 16:34:46 +00:00
|
|
|
|
return lib.filter.targetEnabled({name:'sha'},player,target);
|
|
|
|
|
}).ai=function(target){
|
|
|
|
|
return ai.get.effect(target,{name:'sha'},player);
|
|
|
|
|
}
|
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool){
|
|
|
|
|
player.logSkill('fbeifa');
|
|
|
|
|
player.useCard({name:'sha'},result.targets,false);
|
|
|
|
|
player.storage.fbeifa++;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
expose:0.2,
|
|
|
|
|
},
|
|
|
|
|
group:['fbeifa2','fbeifa3'],
|
|
|
|
|
},
|
|
|
|
|
fbeifa2:{
|
|
|
|
|
trigger:{source:'damageAfter'},
|
|
|
|
|
forced:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
filter:function(event){
|
|
|
|
|
return event.parent.parent.parent.name=='fbeifa';
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.draw();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
fbeifa3:{
|
|
|
|
|
trigger:{global:'phaseBegin'},
|
|
|
|
|
forced:true,
|
|
|
|
|
silent:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
content:function(){
|
|
|
|
|
player.storage.fbeifa=0;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
yufa:{
|
|
|
|
|
trigger:{global:'phaseEnd'},
|
|
|
|
|
direct:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.storage.yufa==event.player;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
2016-09-20 05:06:35 +00:00
|
|
|
|
player.chooseTarget(get.prompt('yufa'),function(card,player,target){
|
2016-03-18 16:34:46 +00:00
|
|
|
|
return target!=trigger.player;
|
|
|
|
|
}).ai=function(target){
|
|
|
|
|
return ai.get.attitude(player,target);
|
|
|
|
|
};
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
player.logSkill('yufa',result.targets);
|
|
|
|
|
result.targets[0].gain(game.createCard('chuansongmen'),'gain2');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
group:['yufa2','yufa3'],
|
|
|
|
|
ai:{
|
|
|
|
|
expose:0.1
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
yufa2:{
|
|
|
|
|
trigger:{player:'damageEnd'},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.source==_status.currentPhase&&event.source!=player;
|
|
|
|
|
},
|
|
|
|
|
popup:false,
|
|
|
|
|
forced:true,
|
|
|
|
|
silent:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
player.storage.yufa=trigger.source;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
yufa3:{
|
|
|
|
|
trigger:{global:'phaseBegin'},
|
|
|
|
|
popup:false,
|
|
|
|
|
forced:true,
|
|
|
|
|
silent:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
player.storage.yufa=null;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
bingyan:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filter:function(event,player){
|
2016-03-28 03:15:47 +00:00
|
|
|
|
if(!lib.card.chiyuxi||!lib.card.jingleishan) return false;
|
2016-03-18 16:34:46 +00:00
|
|
|
|
return player.num('he')>0;
|
|
|
|
|
},
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
if(get.color(card)=='red'){
|
|
|
|
|
return player.canUse('chiyuxi',target);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
return player.canUse('jingleishan',target);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
discard:false,
|
|
|
|
|
delay:false,
|
|
|
|
|
line:false,
|
|
|
|
|
filterCard:true,
|
|
|
|
|
position:'he',
|
|
|
|
|
log:'notarget',
|
|
|
|
|
check:function(card){
|
|
|
|
|
return 6-ai.get.value(card);
|
|
|
|
|
},
|
|
|
|
|
multitarget:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
if(get.color(cards[0])=='black'){
|
|
|
|
|
player.useCard({name:'jingleishan'},cards,targets);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
player.useCard({name:'chiyuxi'},cards,targets);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:9.1,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
var card=ui.selected.cards[0];
|
|
|
|
|
if(card&&get.color(card)=='black'){
|
|
|
|
|
return ai.get.effect(target,{name:'jingleishan'},player,target);
|
|
|
|
|
}
|
|
|
|
|
return ai.get.effect(target,{name:'chiyuxi'},player,target);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-03-18 09:59:45 +00:00
|
|
|
|
shifa:{
|
|
|
|
|
trigger:{player:'phaseUseBegin'},
|
|
|
|
|
forced:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var players=get.players();
|
|
|
|
|
var list=[];
|
|
|
|
|
for(var i in lib.card){
|
|
|
|
|
if(!lib.translate[i+'_info']) continue;
|
|
|
|
|
if(lib.card[i].mode&&lib.card[i].mode.contains(lib.config.mode)==false) continue;
|
|
|
|
|
if(lib.card[i].type=='trick') list.push(i);
|
|
|
|
|
}
|
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
game.players[i].gain(game.createCard(list.randomGet()));
|
|
|
|
|
game.players[i].$draw();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-03-17 07:30:23 +00:00
|
|
|
|
yuanzheng:{
|
2017-01-08 04:09:34 +00:00
|
|
|
|
trigger:{player:'useCardToBegin'},
|
|
|
|
|
direct:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.target&&event.target!=player&&get.distance(player,event.target)>1&&event.target.num('he')>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.discardPlayerCard(trigger.target,get.prompt('yuanzheng',trigger.target),'hej').logSkill=['yuanzheng',trigger.target];
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
yuanzheng_old:{
|
2016-03-17 07:30:23 +00:00
|
|
|
|
trigger:{player:'useCardToBegin'},
|
|
|
|
|
direct:true,
|
|
|
|
|
filter:function(event,player){
|
2016-06-18 13:55:54 +00:00
|
|
|
|
if(event.getParent(2).name=='yuanzheng') return false;
|
2016-03-17 07:30:23 +00:00
|
|
|
|
return event.target&&event.target!=player&&get.distance(player,event.target,'attack')>1;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
2017-01-16 07:48:07 +00:00
|
|
|
|
player.chooseControl('draw_card','出杀','cancel2',function(){
|
2016-06-18 13:55:54 +00:00
|
|
|
|
if(ai.get.effect(trigger.target,{name:'sha'},player,player)>0){
|
|
|
|
|
return '出杀';
|
|
|
|
|
}
|
|
|
|
|
return 'draw_card';
|
|
|
|
|
}).prompt='是对'+get.translation(trigger.target)+'发动否发动【远征】?';
|
2016-03-17 07:30:23 +00:00
|
|
|
|
'step 1'
|
2017-01-16 07:48:07 +00:00
|
|
|
|
if(result.control!='cancel2'){
|
2016-03-17 07:30:23 +00:00
|
|
|
|
if(result.control=='draw_card'){
|
|
|
|
|
player.draw();
|
2016-06-18 13:55:54 +00:00
|
|
|
|
player.logSkill('yuanzheng');
|
2016-03-17 07:30:23 +00:00
|
|
|
|
}
|
|
|
|
|
else{
|
2016-06-18 13:55:54 +00:00
|
|
|
|
player.logSkill('yuanzheng',trigger.target);
|
|
|
|
|
player.useCard({name:'sha'},trigger.target,false).animate=false;
|
|
|
|
|
// player.discardPlayerCard(trigger.target,'he',true);
|
2016-03-17 07:30:23 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
byuhuo:{
|
|
|
|
|
unique:true,
|
2016-03-18 16:34:46 +00:00
|
|
|
|
trigger:{player:'dying'},
|
|
|
|
|
priority:6,
|
|
|
|
|
forced:true,
|
2016-03-17 07:30:23 +00:00
|
|
|
|
mark:true,
|
|
|
|
|
skillAnimation:true,
|
|
|
|
|
animationColor:'fire',
|
|
|
|
|
init:function(player){
|
|
|
|
|
player.storage.byuhuo=false;
|
|
|
|
|
},
|
|
|
|
|
filter:function(event,player){
|
2016-03-18 16:34:46 +00:00
|
|
|
|
if(player.hp>0) return false;
|
2016-03-17 07:30:23 +00:00
|
|
|
|
if(player.storage.byuhuo) return false;
|
2016-03-18 16:34:46 +00:00
|
|
|
|
return true;
|
2016-03-17 07:30:23 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.storage.byuhuo=true;
|
2016-06-18 13:55:54 +00:00
|
|
|
|
player.addSkill('byuhuo2');
|
|
|
|
|
player.maxHp=2;
|
|
|
|
|
player.hp=2;
|
|
|
|
|
player.update();
|
|
|
|
|
if(!player.isTurnedOver()){
|
|
|
|
|
player.turnOver();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:function(player,target){
|
|
|
|
|
if(!target.storage.byuhuo) return 0.6;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
intro:{
|
|
|
|
|
content:function(storage,player){
|
|
|
|
|
if(storage){
|
|
|
|
|
if(player.hasSkill('byuhuo2')){
|
|
|
|
|
return '不能成为其他角色卡牌的目标;在下一回合开始时,对所有其他角色造成两点火焰伤害';
|
|
|
|
|
}
|
|
|
|
|
return '已发动';
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
return '未发动';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
byuhuo2:{
|
|
|
|
|
trigger:{player:'phaseBegin'},
|
|
|
|
|
forced:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
2016-03-17 07:30:23 +00:00
|
|
|
|
var targets=game.players.slice(0);
|
|
|
|
|
targets.remove(player);
|
|
|
|
|
targets.sort(lib.sort.seat);
|
|
|
|
|
event.targets=targets;
|
|
|
|
|
event.num=0;
|
2016-06-18 13:55:54 +00:00
|
|
|
|
player.unmarkSkill('byuhuo');
|
|
|
|
|
'step 1'
|
2016-03-17 07:30:23 +00:00
|
|
|
|
if(num<event.targets.length){
|
2016-06-18 13:55:54 +00:00
|
|
|
|
// if(event.targets[num].num('hej')){
|
|
|
|
|
// player.gainPlayerCard(event.targets[num],'hej',true);
|
|
|
|
|
// }
|
|
|
|
|
player.line(event.targets[num],'fire');
|
|
|
|
|
event.targets[num].damage(2,'fire');
|
2016-03-17 07:30:23 +00:00
|
|
|
|
event.num++;
|
|
|
|
|
event.redo();
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-06-18 13:55:54 +00:00
|
|
|
|
mod:{
|
|
|
|
|
targetEnabled:function(card,player,target){
|
|
|
|
|
if(player!=target) return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-03-17 07:30:23 +00:00
|
|
|
|
},
|
|
|
|
|
yulu:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filterTarget:true,
|
2017-01-21 05:30:20 +00:00
|
|
|
|
selectTarget:[1,Infinity],
|
2016-03-17 07:30:23 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
if(target==targets[0]){
|
2017-01-21 05:30:20 +00:00
|
|
|
|
game.asyncDraw(targets);
|
2016-03-17 07:30:23 +00:00
|
|
|
|
}
|
|
|
|
|
'step 1'
|
|
|
|
|
if(target==targets[0]){
|
|
|
|
|
game.delay();
|
|
|
|
|
}
|
|
|
|
|
'step 2'
|
2017-01-21 05:30:20 +00:00
|
|
|
|
target.chooseToDiscard('hej',true);
|
2016-03-17 07:30:23 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:10,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
2017-01-21 05:30:20 +00:00
|
|
|
|
if(target.num('j')) return 2;
|
|
|
|
|
switch(target.num('he')){
|
2016-03-17 07:30:23 +00:00
|
|
|
|
case 0:return 0;
|
|
|
|
|
case 1:return 0.5;
|
|
|
|
|
case 2:return 0.8;
|
|
|
|
|
default:return 1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
threaten:1.2
|
|
|
|
|
}
|
|
|
|
|
},
|
2017-01-28 03:10:59 +00:00
|
|
|
|
duzhang:{
|
2016-03-17 07:30:23 +00:00
|
|
|
|
trigger:{player:'phaseEnd'},
|
|
|
|
|
direct:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
var stat=player.getStat('card');
|
|
|
|
|
for(var i in stat){
|
|
|
|
|
if(typeof stat[i]=='number'&&get.type(i,'trick')=='trick'){
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
2017-01-28 03:10:59 +00:00
|
|
|
|
player.chooseTarget(get.prompt('duzhang'),function(card,player,target){
|
2016-03-17 07:30:23 +00:00
|
|
|
|
return target!=player;
|
|
|
|
|
}).ai=function(target){
|
|
|
|
|
return -ai.get.attitude(player,target)*Math.sqrt(target.num('h'));
|
|
|
|
|
}
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
2017-01-28 03:10:59 +00:00
|
|
|
|
player.logSkill('duzhang',result.targets);
|
|
|
|
|
result.targets[0].addTempSkill('duzhang2',{player:'phaseAfter'});
|
2016-03-17 07:30:23 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2017-01-28 03:10:59 +00:00
|
|
|
|
duzhang2:{
|
2016-03-17 07:30:23 +00:00
|
|
|
|
mod:{
|
|
|
|
|
cardEnabled:function(card){
|
|
|
|
|
if(get.type(card,'trick')=='trick') return false;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mark:true,
|
|
|
|
|
marktext:'封',
|
|
|
|
|
intro:{
|
|
|
|
|
content:'下个回合无法使用锦囊牌'
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-03-14 08:58:27 +00:00
|
|
|
|
hannu:{
|
|
|
|
|
trigger:{player:'damageEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.num('h')>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var nh=player.num('h');
|
|
|
|
|
if(nh){
|
|
|
|
|
player.draw(nh);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
'step 1'
|
|
|
|
|
var hs=player.get('h');
|
|
|
|
|
if(hs.length>10&&hs.length>player.hp){
|
|
|
|
|
player.discard(hs.randomGets(hs.length-player.hp));
|
|
|
|
|
}
|
2016-03-21 09:05:16 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
2016-08-10 14:07:35 +00:00
|
|
|
|
maixie:true,
|
2016-03-21 09:05:16 +00:00
|
|
|
|
effect:{
|
|
|
|
|
target:function(card,player,target){
|
|
|
|
|
if(get.tag(card,'damage')){
|
2016-08-13 07:28:11 +00:00
|
|
|
|
if(player.hasSkill('jueqing')) return [1,-2];
|
2016-03-21 09:05:16 +00:00
|
|
|
|
if(!target.hasFriend()) return;
|
|
|
|
|
var nh=target.num('h');
|
|
|
|
|
if(nh>5) return [1,-1];
|
|
|
|
|
if(nh<=1) return [1,-0.1];
|
|
|
|
|
if(nh==2){
|
|
|
|
|
if(target.hp>=2) return [1,0.1];
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
if(target.hp>=4) return [1,2];
|
|
|
|
|
if(target.hp==3) return [1,1.5];
|
|
|
|
|
if(target.hp==2) return [1,0.5];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-03-14 08:58:27 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
chuidiao:{
|
|
|
|
|
trigger:{player:'phaseEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
var num=Math.floor(Math.random()*3);
|
|
|
|
|
if(num) player.draw(num);
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
hhudun:{
|
|
|
|
|
trigger:{player:'phaseBegin'},
|
|
|
|
|
forced:true,
|
2016-05-20 15:15:49 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.hujia<3;
|
|
|
|
|
},
|
2016-03-14 08:58:27 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
player.changeHujia();
|
|
|
|
|
player.update();
|
|
|
|
|
},
|
|
|
|
|
},
|
2016-03-04 13:31:26 +00:00
|
|
|
|
fenlie:{
|
|
|
|
|
audio:2,
|
|
|
|
|
forced:true,
|
|
|
|
|
trigger:{player:'gainAfter'},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(event.parent.parent.name=='phaseDraw') return false;
|
|
|
|
|
if(event.parent.name=='fenlie') return false;
|
2016-03-27 06:50:39 +00:00
|
|
|
|
if(!event.cards) return false;
|
2016-03-04 13:31:26 +00:00
|
|
|
|
return true;
|
|
|
|
|
},
|
2016-08-18 10:51:06 +00:00
|
|
|
|
usable:2,
|
2016-03-04 13:31:26 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
var cards=[];
|
|
|
|
|
for(var i=0;i<trigger.cards.length;i++){
|
|
|
|
|
cards.push(game.createCard(trigger.cards[i]));
|
|
|
|
|
}
|
|
|
|
|
player.gain(cards,'draw');
|
|
|
|
|
},
|
2016-06-09 15:06:55 +00:00
|
|
|
|
ai:{
|
|
|
|
|
effect:{
|
|
|
|
|
target:function(card){
|
|
|
|
|
if(card.name=='toulianghuanzhu'){
|
|
|
|
|
return [1,2];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-03-04 13:31:26 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
nianfu:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return player!=target&&target.num('e')>0;
|
|
|
|
|
},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return game.hasPlayer(function(target){
|
|
|
|
|
return target!=player&&target.num('e');
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
var es=target.get('e');
|
|
|
|
|
if(es.length>1){
|
|
|
|
|
es=es.randomGets(Math.ceil(Math.random()*2));
|
|
|
|
|
}
|
|
|
|
|
target.discard(es);
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:9.5,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
var ne=target.num('e');
|
|
|
|
|
if(ne>1) return -1.5;
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
shixu:{
|
|
|
|
|
group:['shixu_begin','shixu_end','shixu_discard'],
|
|
|
|
|
subSkill:{
|
|
|
|
|
begin:{
|
|
|
|
|
trigger:{global:'phaseUseBegin'},
|
|
|
|
|
forced:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
silent:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.player.storage.shixu_begin=get.time();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
end:{
|
|
|
|
|
trigger:{global:'phaseUseEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
silent:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return typeof event.player.storage.shixu_begin=='number';
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.player.storage.shixu=get.time()-trigger.player.storage.shixu_begin;
|
|
|
|
|
delete trigger.player.storage.shixu_begin;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
discard:{
|
|
|
|
|
trigger:{global:'phaseEnd'},
|
|
|
|
|
forced:true,
|
2016-07-01 01:31:02 +00:00
|
|
|
|
check:function(event,player){
|
|
|
|
|
return ai.get.attitude(player,event.player)<0;
|
|
|
|
|
},
|
2016-03-04 13:31:26 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return typeof event.player.storage.shixu=='number'&&
|
2016-04-19 08:56:58 +00:00
|
|
|
|
event.player.storage.shixu>3000&&event.player.num('he')>0&&event.player.isAlive();
|
2016-03-04 13:31:26 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.line(trigger.player,'green');
|
|
|
|
|
trigger.player.chooseToDiscard('he',true,Math.floor(trigger.player.storage.shixu/3000));
|
|
|
|
|
delete trigger.player.storage.shixu;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
jixuan:{
|
|
|
|
|
trigger:{player:'phaseAfter'},
|
|
|
|
|
forced:true,
|
2017-01-28 12:29:36 +00:00
|
|
|
|
priority:-50,
|
2016-03-04 13:31:26 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.parent.name!='jixuan';
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
2017-01-18 08:58:53 +00:00
|
|
|
|
player.draw();
|
2016-03-04 13:31:26 +00:00
|
|
|
|
player.phase();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:1.8
|
|
|
|
|
},
|
|
|
|
|
},
|
2015-12-30 04:00:49 +00:00
|
|
|
|
qianghua:{
|
|
|
|
|
trigger:{player:'useCardAfter'},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(event.parent.name=='qianghua') return false;
|
2016-03-22 06:45:57 +00:00
|
|
|
|
if(player.storage.qianghua>=1) return false;
|
2015-12-30 04:00:49 +00:00
|
|
|
|
if(_status.currentPhase!=player) return false;
|
|
|
|
|
if(event.parent.parent.name!='phaseUse') return false;
|
|
|
|
|
if(!event.targets||!event.card) return false;
|
|
|
|
|
var type=get.type(event.card);
|
|
|
|
|
if(type!='basic'&&type!='trick') return false;
|
|
|
|
|
var card=game.createCard(event.card.name,event.card.suit,event.card.number,event.card.nature);
|
|
|
|
|
for(var i=0;i<event.targets.length;i++){
|
|
|
|
|
if(!event.targets[i].isAlive()) return false;
|
|
|
|
|
if(!player.canUse({name:event.card.name},event.targets[i],false,false)){
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
check:function(event,player){
|
|
|
|
|
if(event.card.name=='tiesuo') return false;
|
2016-08-28 00:30:25 +00:00
|
|
|
|
if(event.card.name=='jiu') return false;
|
|
|
|
|
if(event.card.name=='tianxianjiu') return false;
|
2015-12-30 04:00:49 +00:00
|
|
|
|
if(event.card.name=='toulianghuanzhu') return false;
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.storage.qianghua++;
|
|
|
|
|
var card=game.createCard(trigger.card.name,trigger.card.suit,trigger.card.number,trigger.card.nature);
|
|
|
|
|
player.useCard(card,trigger.targets);
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:1.3
|
|
|
|
|
},
|
|
|
|
|
group:'qianghua_clear',
|
|
|
|
|
subSkill:{
|
|
|
|
|
clear:{
|
2016-03-22 06:45:57 +00:00
|
|
|
|
trigger:{player:'phaseBefore'},
|
2015-12-30 04:00:49 +00:00
|
|
|
|
forced:true,
|
|
|
|
|
silent:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
content:function(){
|
|
|
|
|
player.storage.qianghua=0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
qianghua2:{},
|
2015-12-20 04:34:31 +00:00
|
|
|
|
biri:{
|
|
|
|
|
trigger:{global:'useCard'},
|
|
|
|
|
priority:15,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.card.name=='sha'&&event.player!=player&&
|
|
|
|
|
get.distance(player,event.targets[0])<=1&&
|
2015-12-30 04:00:49 +00:00
|
|
|
|
player.num('h','shan')>0&&
|
2015-12-20 04:34:31 +00:00
|
|
|
|
event.targets.contains(player)==false&&event.targets.length==1;
|
|
|
|
|
},
|
|
|
|
|
direct:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
var effect=0;
|
|
|
|
|
for(var i=0;i<trigger.targets.length;i++){
|
|
|
|
|
effect+=ai.get.effect(trigger.targets[i],trigger.card,trigger.player,player);
|
|
|
|
|
}
|
2015-12-30 04:00:49 +00:00
|
|
|
|
var str='蔽日:是否弃置一张闪令'+get.translation(trigger.player);
|
2015-12-20 04:34:31 +00:00
|
|
|
|
if(trigger.targets&&trigger.targets.length){
|
|
|
|
|
str+='对'+get.translation(trigger.targets);
|
|
|
|
|
}
|
|
|
|
|
str+='的'+get.translation(trigger.card)+'失效?';
|
|
|
|
|
if(event.isMine()||effect<0){
|
|
|
|
|
game.delay(0.5);
|
|
|
|
|
}
|
2015-12-30 04:00:49 +00:00
|
|
|
|
var next=player.chooseToDiscard('h',function(card){
|
|
|
|
|
return card.name=='shan';
|
|
|
|
|
},str);
|
|
|
|
|
next.ai=function(card){
|
2015-12-20 04:34:31 +00:00
|
|
|
|
if(effect<0){
|
|
|
|
|
return 9-ai.get.value(card);
|
|
|
|
|
}
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
2015-12-30 04:00:49 +00:00
|
|
|
|
next.logSkill=['biri',trigger.targets];
|
2015-12-20 04:34:31 +00:00
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool){
|
|
|
|
|
trigger.untrigger();
|
|
|
|
|
trigger.finish();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
expose:0.2
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
stuxi:{
|
|
|
|
|
trigger:{player:'phaseEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
event.targets=get.players();
|
|
|
|
|
'step 1'
|
|
|
|
|
if(event.targets.length){
|
|
|
|
|
var target=event.targets.shift();
|
|
|
|
|
if(!target.isTurnedOver()&&target.num('he')){
|
|
|
|
|
target.chooseToDiscard(true);
|
|
|
|
|
}
|
|
|
|
|
event.redo();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
bingdong:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return !player.isTurnedOver();
|
|
|
|
|
},
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return !target.isTurnedOver()&&player!=target;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
if(!player.isTurnedOver()){
|
|
|
|
|
player.turnOver();
|
|
|
|
|
}
|
|
|
|
|
'step 1'
|
|
|
|
|
if(!target.isTurnedOver()){
|
|
|
|
|
target.turnOver();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:1,
|
|
|
|
|
expose:0.2,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
if(ai.get.attitude(player,target)<-3&&player.identity!='zhu'){
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
luoshi:{
|
|
|
|
|
trigger:{player:'damageEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.num('he')>0||(event.source&&event.source.num('he')>0);
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var hs=player.get('he');
|
|
|
|
|
if(hs.length){
|
|
|
|
|
player.discard(hs.randomGet())
|
|
|
|
|
}
|
|
|
|
|
'step 1'
|
|
|
|
|
if(trigger.source){
|
|
|
|
|
var hs=trigger.source.get('he');
|
|
|
|
|
if(hs.length){
|
|
|
|
|
trigger.source.discard(hs.randomGet())
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ronghuo:{
|
|
|
|
|
trigger:{player:'useCardToBefore'},
|
|
|
|
|
priority:7,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(event.card.name=='sha'&&!event.card.nature) return true;
|
|
|
|
|
},
|
|
|
|
|
check:function(event,player){
|
|
|
|
|
var att=ai.get.attitude(player,event.target);
|
|
|
|
|
if(event.target.hasSkillTag('nofire')){
|
|
|
|
|
return att>0;
|
|
|
|
|
}
|
|
|
|
|
return att<=0;
|
|
|
|
|
},
|
|
|
|
|
forced:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.card.nature='fire';
|
|
|
|
|
player.addSkill('ronghuo2');
|
|
|
|
|
player.storage.ronghuo=trigger.card;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ronghuo2:{
|
|
|
|
|
trigger:{player:'useCardAfter'},
|
|
|
|
|
forced:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
content:function(){
|
|
|
|
|
delete player.storage.ronghuo.nature;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
fushi:{
|
|
|
|
|
enable:'phaseUse',
|
2016-01-04 08:59:37 +00:00
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target.hp<target.maxHp;
|
|
|
|
|
},
|
2015-12-20 04:34:31 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
target.loseMaxHp(true);
|
|
|
|
|
'step 1'
|
|
|
|
|
if(target.hp<target.maxHp){
|
|
|
|
|
target.recover();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:1.4,
|
|
|
|
|
expose:0.2,
|
|
|
|
|
order:9,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
if(target.hp==target.maxHp) return 0;
|
|
|
|
|
if(target.hp==target.maxHp-1) return -1;
|
|
|
|
|
if(target.hp==1) return 1;
|
|
|
|
|
if(target.hp<target.maxHp-2) return 0.5;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mianyi:{
|
|
|
|
|
mod:{
|
|
|
|
|
targetEnabled:function(card,player,target,now){
|
|
|
|
|
if(player!=target){
|
2015-12-30 04:00:49 +00:00
|
|
|
|
if(get.type(card)=='trick') return false;
|
2015-12-20 04:34:31 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
jiaohui:{
|
|
|
|
|
trigger:{player:'phaseEnd'},
|
|
|
|
|
direct:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return !player.getStat('damage');
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
2016-09-20 05:06:35 +00:00
|
|
|
|
player.chooseTarget(get.prompt('jiaohui')).ai=function(target){
|
2015-12-20 04:34:31 +00:00
|
|
|
|
var att=ai.get.attitude(player,target);
|
|
|
|
|
if(att>1&&target.hp<=1){
|
|
|
|
|
att+=2;
|
|
|
|
|
}
|
|
|
|
|
return att;
|
|
|
|
|
};
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
event.target=result.targets[0];
|
|
|
|
|
player.logSkill('jiaohui',event.target);
|
|
|
|
|
if(event.target.hp<event.target.maxHp){
|
|
|
|
|
event.target.chooseControl('draw_card','recover_hp',function(event,target){
|
|
|
|
|
if(target.hp>=2||target.hp>=target.maxHp-1) return 'draw_card';
|
|
|
|
|
if(target.hp==2&&target.num('h')==0) return 'draw_card';
|
|
|
|
|
return 'recover_hp';
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
else{
|
2017-01-28 02:03:53 +00:00
|
|
|
|
event.target.draw();
|
2015-12-20 04:34:31 +00:00
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
'step 2'
|
|
|
|
|
if(result.control=='draw_card'){
|
|
|
|
|
event.target.draw(2);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.target.recover();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
2015-11-21 05:30:26 +00:00
|
|
|
|
chenshui:{
|
|
|
|
|
trigger:{player:'phaseEnd'},
|
|
|
|
|
frequent:true,
|
|
|
|
|
content:function(){
|
2016-03-18 09:59:45 +00:00
|
|
|
|
var list=['hsmengjing_feicuiyoulong','hsmengjing_huanxiaojiemei',
|
|
|
|
|
'hsmengjing_suxing','hsmengjing_mengye','hsmengjing_mengjing'];
|
2015-11-21 05:30:26 +00:00
|
|
|
|
player.gain(game.createCard(list.randomGet()));
|
|
|
|
|
player.$draw();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:2
|
|
|
|
|
}
|
|
|
|
|
},
|
2015-11-18 03:39:14 +00:00
|
|
|
|
liehun:{
|
2015-11-21 05:30:26 +00:00
|
|
|
|
trigger:{player:'phaseEnd'},
|
2015-11-18 03:39:14 +00:00
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.num('h',{type:'basic'})<player.num('h');
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
var hs=player.get('h');
|
|
|
|
|
for(var i=0;i<hs.length;i++){
|
|
|
|
|
if(get.type(hs[i])=='basic'){
|
|
|
|
|
hs.splice(i--,1);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(hs.length){
|
|
|
|
|
var hs2=[];
|
|
|
|
|
for(var i=0;i<hs.length;i++){
|
|
|
|
|
hs2.push(game.createCard(hs[i].name,hs[i].suit,hs[i].number));
|
|
|
|
|
}
|
|
|
|
|
player.gain(hs2,'draw');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:1.5
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
xjumo:{
|
|
|
|
|
mod:{
|
|
|
|
|
maxHandcard:function(player,num){
|
2015-11-30 13:08:29 +00:00
|
|
|
|
if(player.hp<player.maxHp) return num+5;
|
2015-11-18 03:39:14 +00:00
|
|
|
|
return num+3;
|
2015-11-21 05:30:26 +00:00
|
|
|
|
},
|
2015-11-18 03:39:14 +00:00
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
malymowang:{
|
|
|
|
|
trigger:{source:'damageBegin'},
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event){
|
|
|
|
|
return event.card&&get.type(event.card)=='trick'&&event.parent.name!='_lianhuan'&&event.parent.name!='_lianhuan2';
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.num++;
|
|
|
|
|
},
|
|
|
|
|
group:'malymowang2',
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:1.8
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
malymowang2:{
|
|
|
|
|
trigger:{player:'phaseUseBegin'},
|
|
|
|
|
forced:true,
|
|
|
|
|
content:function(){
|
2016-12-05 02:45:27 +00:00
|
|
|
|
player.gain(game.createCard(get.inpile('trick').randomGet()),'draw');
|
2015-11-18 03:39:14 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
lingzhou:{
|
|
|
|
|
trigger:{player:'useCard'},
|
|
|
|
|
direct:true,
|
|
|
|
|
filter:function(event){
|
|
|
|
|
return get.type(event.card,'trick')=='trick';
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
2016-09-20 05:06:35 +00:00
|
|
|
|
player.chooseTarget(get.prompt('lingzhou')).ai=function(target){
|
2015-11-18 03:39:14 +00:00
|
|
|
|
var num=ai.get.attitude(player,target);
|
|
|
|
|
if(num>0){
|
2016-06-09 15:06:55 +00:00
|
|
|
|
if(target==player){
|
|
|
|
|
num++;
|
2015-11-18 03:39:14 +00:00
|
|
|
|
}
|
2016-06-09 15:06:55 +00:00
|
|
|
|
if(target.hp==1){
|
2015-11-18 03:39:14 +00:00
|
|
|
|
num+=3;
|
|
|
|
|
}
|
|
|
|
|
else if(target.hp==2){
|
|
|
|
|
num+=1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return num;
|
|
|
|
|
}
|
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool){
|
|
|
|
|
player.logSkill('lingzhou',result.targets);
|
|
|
|
|
var target=result.targets[0];
|
|
|
|
|
if(target.hp<target.maxHp){
|
|
|
|
|
target.chooseControl('draw_card','recover_hp',function(event,target){
|
|
|
|
|
if(target.hp>=3&&target.num('h')<target.hp) return 'draw_card';
|
|
|
|
|
return 'recover_hp';
|
|
|
|
|
});
|
|
|
|
|
event.target=target;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
target.draw();
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
"step 2"
|
|
|
|
|
if(result.control=='draw_card'){
|
|
|
|
|
event.target.draw();
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.target.recover();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
expose:0.2,
|
|
|
|
|
threaten:1.5
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mieshi:{
|
|
|
|
|
trigger:{player:'phaseEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.loseHp();
|
|
|
|
|
'step 1'
|
|
|
|
|
event.target=game.players.randomGet(player);
|
|
|
|
|
player.line(event.target,'fire');
|
|
|
|
|
game.delayx();
|
|
|
|
|
'step 2'
|
|
|
|
|
event.target.damage('fire');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
xmojian:{
|
|
|
|
|
trigger:{player:'turnOverAfter'},
|
|
|
|
|
direct:true,
|
|
|
|
|
filter:function(event,player){
|
2016-06-25 16:38:59 +00:00
|
|
|
|
return !player.isTurnedOver();
|
2015-11-18 03:39:14 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
2016-09-20 05:06:35 +00:00
|
|
|
|
player.chooseTarget(get.prompt('xmojian'),function(card,player,target){
|
2015-11-18 03:39:14 +00:00
|
|
|
|
return lib.filter.targetEnabled({name:'sha'},player,target);
|
|
|
|
|
}).ai=function(target){
|
|
|
|
|
return ai.get.effect(target,{name:'sha'},player);
|
|
|
|
|
}
|
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool){
|
|
|
|
|
player.logSkill('xmojian');
|
|
|
|
|
player.useCard({name:'sha'},result.targets,false);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
expose:0.2,
|
|
|
|
|
}
|
|
|
|
|
},
|
2015-12-19 09:28:50 +00:00
|
|
|
|
xshixin:{
|
2015-11-18 03:39:14 +00:00
|
|
|
|
trigger:{source:'damageEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.player.isAlive()&&event.player!=player;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
trigger.player.loseHp();
|
|
|
|
|
'step 1'
|
|
|
|
|
player.loseHp();
|
|
|
|
|
}
|
|
|
|
|
},
|
2015-09-16 02:45:45 +00:00
|
|
|
|
enze:{
|
2015-09-03 03:49:14 +00:00
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return player.num('h')!=target.num('h');
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
var num=player.num('h')-target.num('h');
|
|
|
|
|
if(num>0){
|
2016-05-29 08:46:27 +00:00
|
|
|
|
if(num>3){
|
|
|
|
|
num=3;
|
|
|
|
|
}
|
2015-09-03 03:49:14 +00:00
|
|
|
|
target.draw(num);
|
|
|
|
|
}
|
|
|
|
|
else if(num<0){
|
|
|
|
|
target.chooseToDiscard(-num,true);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:1.8,
|
2015-09-10 13:56:57 +00:00
|
|
|
|
order:function(name,player){
|
2017-01-21 05:30:20 +00:00
|
|
|
|
var max=true,num=0;
|
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
if(game.players[i]==player) continue;
|
|
|
|
|
var att=ai.get.attitude(player,game.players[i]);
|
|
|
|
|
var dh=player.num('h')-game.players[i].num('h');
|
|
|
|
|
if(att*dh>num){
|
|
|
|
|
if(att>0){
|
|
|
|
|
max=true;
|
|
|
|
|
}
|
|
|
|
|
else if(att<0){
|
|
|
|
|
max=false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(max) return 10;
|
|
|
|
|
return 0.5;
|
2015-09-03 03:49:14 +00:00
|
|
|
|
},
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
return player.num('h')-target.num('h');
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
expose:0.2
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
chongsheng:{
|
|
|
|
|
unique:true,
|
|
|
|
|
enable:'chooseToUse',
|
|
|
|
|
mark:true,
|
|
|
|
|
init:function(player){
|
2016-09-25 04:06:04 +00:00
|
|
|
|
player.storage.chongsheng=2;
|
|
|
|
|
player.syncStorage('chongsheng');
|
2015-09-03 03:49:14 +00:00
|
|
|
|
},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(event.type!='dying') return false;
|
|
|
|
|
if(player!=_status.dying) return false;
|
2016-09-25 04:06:04 +00:00
|
|
|
|
if(player.storage.chongsheng<=0) return false;
|
|
|
|
|
return true;
|
2015-09-03 03:49:14 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
2017-01-24 14:45:08 +00:00
|
|
|
|
'step 0'
|
2016-09-25 04:06:04 +00:00
|
|
|
|
player.hp=Math.min(player.storage.chongsheng,player.maxHp);
|
2015-09-03 03:49:14 +00:00
|
|
|
|
player.discard(player.get('hej'));
|
2016-09-25 04:06:04 +00:00
|
|
|
|
player.draw(player.storage.chongsheng);
|
|
|
|
|
player.storage.chongsheng--;
|
|
|
|
|
if(player.storage.chongsheng<=0){
|
2015-09-03 03:49:14 +00:00
|
|
|
|
player.unmarkSkill('chongsheng');
|
|
|
|
|
}
|
2017-01-24 14:45:08 +00:00
|
|
|
|
'step 1'
|
2016-07-20 03:17:01 +00:00
|
|
|
|
if(player.isLinked()) player.link();
|
2017-01-24 14:45:08 +00:00
|
|
|
|
'step 2'
|
2016-07-20 03:17:01 +00:00
|
|
|
|
if(player.isTurnedOver()) player.turnOver();
|
2016-09-25 04:06:04 +00:00
|
|
|
|
player.syncStorage('chongsheng');
|
2015-09-03 03:49:14 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
skillTagFilter:function(player){
|
2016-09-25 04:06:04 +00:00
|
|
|
|
if(player.storage.chongsheng<=0) return false;
|
2015-09-03 03:49:14 +00:00
|
|
|
|
if(player.hp>0) return false;
|
|
|
|
|
},
|
|
|
|
|
save:true,
|
|
|
|
|
result:{
|
|
|
|
|
player:10
|
|
|
|
|
},
|
|
|
|
|
threaten:function(player,target){
|
2016-09-25 04:06:04 +00:00
|
|
|
|
if(target.storage.chongsheng>0) return 0.6;
|
2015-09-03 03:49:14 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
intro:{
|
2016-09-25 04:06:04 +00:00
|
|
|
|
content:'time'
|
2015-09-03 03:49:14 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
guozai:{
|
2015-09-10 09:35:58 +00:00
|
|
|
|
enable:'phaseUse',
|
2016-08-28 00:30:25 +00:00
|
|
|
|
usable:1,
|
2015-09-03 03:49:14 +00:00
|
|
|
|
filter:function(event,player){
|
2015-09-10 09:35:58 +00:00
|
|
|
|
return player.num('h')<4;
|
|
|
|
|
},
|
|
|
|
|
init:function(player){
|
|
|
|
|
player.storage.guozai2=0;
|
2015-09-03 03:49:14 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
2015-09-10 09:35:58 +00:00
|
|
|
|
var num=4-player.num('h');
|
|
|
|
|
player.draw(num);
|
|
|
|
|
player.addSkill('guozai2');
|
|
|
|
|
player.storage.guozai2+=num;
|
2015-11-04 01:59:00 +00:00
|
|
|
|
game.addVideo('storage',player,['guozai2',player.storage.guozai2]);
|
2015-09-10 09:35:58 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:1,
|
|
|
|
|
result:{
|
2015-09-10 13:56:57 +00:00
|
|
|
|
player:1
|
2015-09-10 09:35:58 +00:00
|
|
|
|
}
|
2015-09-03 03:49:14 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
guozai2:{
|
|
|
|
|
mark:true,
|
|
|
|
|
intro:{
|
2015-09-10 09:35:58 +00:00
|
|
|
|
content:function(storage){
|
|
|
|
|
return '需弃置'+get.cnNumber(storage)+'张牌';
|
2015-09-03 03:49:14 +00:00
|
|
|
|
}
|
2015-09-10 09:35:58 +00:00
|
|
|
|
},
|
|
|
|
|
trigger:{player:'phaseUseEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
player.chooseToDiscard('he',true,player.storage.guozai2);
|
|
|
|
|
player.storage.guozai2=0;
|
|
|
|
|
player.removeSkill('guozai2');
|
2015-09-03 03:49:14 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
2015-12-20 04:34:31 +00:00
|
|
|
|
guozaix:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:2,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.num('h')<4;
|
|
|
|
|
},
|
|
|
|
|
init:function(player){
|
|
|
|
|
player.storage.guozaix2=0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
var num=4-player.num('h');
|
|
|
|
|
player.draw(num);
|
|
|
|
|
player.addSkill('guozaix2');
|
|
|
|
|
player.storage.guozaix2+=num;
|
|
|
|
|
game.addVideo('storage',player,['guozaix2',player.storage.guozaix2]);
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:1,
|
|
|
|
|
result:{
|
|
|
|
|
player:1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
guozaix2:{
|
|
|
|
|
mark:true,
|
|
|
|
|
intro:{
|
|
|
|
|
content:function(storage){
|
|
|
|
|
return '需弃置'+get.cnNumber(storage)+'张牌';
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
trigger:{player:'phaseUseEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
player.chooseToDiscard('he',true,player.storage.guozaix2);
|
|
|
|
|
player.storage.guozaix2=0;
|
|
|
|
|
player.removeSkill('guozaix2');
|
|
|
|
|
}
|
|
|
|
|
},
|
2015-09-03 03:49:14 +00:00
|
|
|
|
hanshuang:{
|
|
|
|
|
trigger:{source:'damageEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.card&&get.color(event.card)=='black'&&
|
|
|
|
|
!event.player.isTurnedOver()&&event.player.isAlive();
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.player.turnOver();
|
|
|
|
|
player.loseHp();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:1.5,
|
|
|
|
|
effect:{
|
|
|
|
|
player:function(card,player,target,current){
|
|
|
|
|
if(get.color(card)=='black'&&get.tag(card,'damage')){
|
|
|
|
|
return [1,0,1,-2];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
bingshi:{
|
2015-09-25 00:26:16 +00:00
|
|
|
|
global:'bingshi2'
|
|
|
|
|
},
|
|
|
|
|
bingshi2:{
|
|
|
|
|
trigger:{global:'dieAfter'},
|
2015-09-03 03:49:14 +00:00
|
|
|
|
forced:true,
|
2016-08-11 11:52:17 +00:00
|
|
|
|
globalFixed:true,
|
2015-09-25 00:26:16 +00:00
|
|
|
|
filter:function(event,player){
|
2016-08-13 07:28:11 +00:00
|
|
|
|
return event.player.hasSkill('bingshi')&&event.player.isDead();
|
2015-09-25 00:26:16 +00:00
|
|
|
|
},
|
2015-09-03 03:49:14 +00:00
|
|
|
|
content:function(){
|
2015-10-10 14:38:33 +00:00
|
|
|
|
trigger.player.line(player,'thunder');
|
|
|
|
|
player.damage('nosource','thunder').animate=false;
|
|
|
|
|
player.$damage(trigger.player);
|
2016-01-04 08:59:37 +00:00
|
|
|
|
if(lib.config.animation&&!lib.config.low_performance){
|
|
|
|
|
player.$thunder();
|
|
|
|
|
}
|
2016-08-28 00:30:25 +00:00
|
|
|
|
if(!event.parent.parent.bingshi_logv){
|
|
|
|
|
event.parent.parent.bingshi_logv=true;
|
|
|
|
|
game.logv(trigger.player,'bingshi',game.players.slice(0),event.parent.parent);
|
|
|
|
|
}
|
2015-09-03 03:49:14 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
huanwu:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return !target.storage.huanwu;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
target.gainMaxHp();
|
|
|
|
|
target.recover();
|
|
|
|
|
target.draw(2);
|
|
|
|
|
target.storage.huanwu=true;
|
|
|
|
|
target.mark('huanwu',{
|
|
|
|
|
name:'唤雾',
|
|
|
|
|
content:'已发动'
|
|
|
|
|
});
|
2015-11-04 01:59:00 +00:00
|
|
|
|
game.addVideo('mark',target,{
|
|
|
|
|
name:'唤雾',
|
|
|
|
|
content:'已发动',
|
|
|
|
|
id:'huanwu'
|
|
|
|
|
});
|
2015-09-03 03:49:14 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:1.2,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
return 1/target.hp;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
order:10,
|
|
|
|
|
expose:0.3
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
fengnu:{
|
|
|
|
|
mod:{
|
2016-07-01 01:31:02 +00:00
|
|
|
|
cardUsable:function(card){
|
|
|
|
|
if(get.info(card)&&get.info(card).forceUsable) return;
|
2015-09-03 03:49:14 +00:00
|
|
|
|
return Infinity;
|
|
|
|
|
},
|
|
|
|
|
targetInRange:function(){
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
trigger:{player:'useCard'},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(_status.currentPhase!=player) return false;
|
|
|
|
|
return get.cardCount(event.card,player)>1;
|
|
|
|
|
},
|
|
|
|
|
forced:true,
|
2017-01-26 11:13:30 +00:00
|
|
|
|
usable:3,
|
2015-09-03 03:49:14 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
player.draw();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
shengdun:{
|
2015-10-20 17:44:00 +00:00
|
|
|
|
trigger:{player:'phaseBegin'},
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return !player.hujia;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.changeHujia();
|
|
|
|
|
player.update();
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
shengdun_old:{
|
2015-09-03 03:49:14 +00:00
|
|
|
|
trigger:{player:'phaseBegin'},
|
|
|
|
|
forced:true,
|
|
|
|
|
silent:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
priority:10,
|
|
|
|
|
init2:function(player){
|
|
|
|
|
player.markSkill('shengdun');
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
if(player.storage.shengdun){
|
|
|
|
|
player.markSkill('shengdun');
|
|
|
|
|
}
|
|
|
|
|
player.storage.shengdun=false;
|
|
|
|
|
},
|
|
|
|
|
intro:{
|
|
|
|
|
content:'未发动'
|
|
|
|
|
},
|
|
|
|
|
group:'shengdun2'
|
|
|
|
|
},
|
2015-10-20 17:44:00 +00:00
|
|
|
|
shengdun_old2:{
|
2015-09-03 03:49:14 +00:00
|
|
|
|
trigger:{player:'damageBegin'},
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return event.num>0&&!player.storage.shengdun;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.num--;
|
|
|
|
|
player.storage.shengdun=true;
|
|
|
|
|
player.unmarkSkill('shengdun');
|
|
|
|
|
}
|
|
|
|
|
},
|
2015-08-15 09:10:06 +00:00
|
|
|
|
jingmeng:{
|
|
|
|
|
trigger:{player:'useCard'},
|
|
|
|
|
frequent:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return _status.currentPhase==player&&get.cardCount(true,player)==1;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
var type=get.type(trigger.card);
|
|
|
|
|
var card=get.cardPile(function(card){
|
|
|
|
|
return get.type(card)==type;
|
|
|
|
|
});
|
|
|
|
|
if(card){
|
|
|
|
|
player.gain(card,'gain2');
|
2015-12-08 13:54:44 +00:00
|
|
|
|
game.log(player,'获得了',card);
|
2015-08-15 09:10:06 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:1.1
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
kuixin:{
|
|
|
|
|
trigger:{player:'phaseEnd'},
|
|
|
|
|
direct:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
var nh=player.num('h');
|
|
|
|
|
var nm=1;
|
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
var target=game.players[i];
|
|
|
|
|
if(target!=player&&Math.abs(target.num('h')-nh)<=nm){
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var nh=player.num('h');
|
|
|
|
|
var nm=1;
|
|
|
|
|
var check=true;
|
|
|
|
|
if(player.num('h','tao')){
|
|
|
|
|
check=false;
|
|
|
|
|
}
|
|
|
|
|
else if(player.num('h','shan')&&player.num('h','wuxie')){
|
|
|
|
|
check=false;
|
|
|
|
|
}
|
2016-09-20 05:06:35 +00:00
|
|
|
|
player.chooseTarget(get.prompt('kuixin'),function(card,player,target){
|
2015-08-15 09:10:06 +00:00
|
|
|
|
return target!=player&&Math.abs(target.num('h')-nh)<=nm;
|
|
|
|
|
}).ai=function(target){
|
|
|
|
|
if(!check) return 0;
|
|
|
|
|
if(ai.get.attitude(player,target)<0){
|
|
|
|
|
return target.num('h')-nh;
|
|
|
|
|
}
|
|
|
|
|
return 0;
|
|
|
|
|
};
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
var target=result.targets[0];
|
|
|
|
|
player.logSkill('kuixin',result.targets);
|
|
|
|
|
var cards0=target.get('h');
|
|
|
|
|
var cards1=player.get('h');
|
2017-01-13 18:51:13 +00:00
|
|
|
|
target.gain(cards1,player);
|
|
|
|
|
player.gain(cards0,target);
|
2015-08-15 09:10:06 +00:00
|
|
|
|
target.$give(cards0.length,player);
|
|
|
|
|
player.$give(cards1.length,target);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
expose:0.2,
|
|
|
|
|
threaten:1.5
|
|
|
|
|
}
|
|
|
|
|
},
|
2015-10-20 17:44:00 +00:00
|
|
|
|
lianzhan:{
|
2015-08-15 09:10:06 +00:00
|
|
|
|
trigger:{player:'phaseUseEnd'},
|
|
|
|
|
frequent:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return get.cardCount(true,player)>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.draw(get.cardCount(true,player));
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:1.3
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
bingshuang:{
|
|
|
|
|
trigger:{source:'damageEnd'},
|
|
|
|
|
filter:function(event,player){
|
2015-09-03 03:49:14 +00:00
|
|
|
|
return event.card&&get.type(event.card)=='trick'&&
|
|
|
|
|
event.player.isAlive()&&!event.player.isTurnedOver();
|
2015-08-15 09:10:06 +00:00
|
|
|
|
},
|
|
|
|
|
check:function(event,player){
|
2016-07-04 03:32:59 +00:00
|
|
|
|
if(event.player.isTurnedOver()){
|
|
|
|
|
return ai.get.attitude(player,event.player)>0;
|
|
|
|
|
}
|
2015-08-15 09:10:06 +00:00
|
|
|
|
return ai.get.attitude(player,event.player)<=0;
|
|
|
|
|
},
|
2016-08-08 16:04:13 +00:00
|
|
|
|
logTarget:'player',
|
2015-08-15 09:10:06 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
trigger.player.draw(2);
|
|
|
|
|
trigger.player.turnOver();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
yanshu:{
|
2016-11-30 15:02:10 +00:00
|
|
|
|
trigger:{player:'discardAfter'},
|
|
|
|
|
frequent:true,
|
|
|
|
|
usable:1,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(!event.cards) return false;
|
|
|
|
|
for(var i=0;i<event.cards.length;i++){
|
|
|
|
|
if(get.type(event.cards[i])!='basic') return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.gain(game.createCard('liuxinghuoyu','red'),'gain2');
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
yanshu_old:{
|
2015-09-03 03:49:14 +00:00
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.num('h',{type:'basic'})<player.num('h');
|
|
|
|
|
},
|
|
|
|
|
filterCard:function(card){
|
|
|
|
|
return get.type(card)!='basic';
|
|
|
|
|
},
|
|
|
|
|
check:function(card){
|
|
|
|
|
return 6-ai.get.value(card);
|
|
|
|
|
},
|
2015-08-15 09:10:06 +00:00
|
|
|
|
content:function(){
|
2015-09-03 03:49:14 +00:00
|
|
|
|
var card=cards[0];
|
2015-10-08 06:16:37 +00:00
|
|
|
|
var card2=get.cardPile('liuxinghuoyu');
|
|
|
|
|
if(!card2){
|
|
|
|
|
card2=game.createCard('liuxinghuoyu',get.suit(card),get.number(card));
|
|
|
|
|
}
|
|
|
|
|
player.gain(card2,'gain2');
|
2015-08-15 09:10:06 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
2015-09-03 03:49:14 +00:00
|
|
|
|
order:9,
|
|
|
|
|
result:{
|
|
|
|
|
player:1
|
|
|
|
|
},
|
2015-08-15 09:10:06 +00:00
|
|
|
|
threaten:2
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
shengyan:{
|
|
|
|
|
trigger:{global:'recoverEnd'},
|
|
|
|
|
filter:function(event,player){
|
2016-08-13 07:28:11 +00:00
|
|
|
|
return !player.hasSkill('shengyan2')&&event.player.hp<event.player.maxHp;
|
2015-08-15 09:10:06 +00:00
|
|
|
|
},
|
2016-09-20 05:06:35 +00:00
|
|
|
|
logTarget:'player',
|
2015-08-15 09:10:06 +00:00
|
|
|
|
check:function(event,player){
|
|
|
|
|
return ai.get.attitude(player,event.player)>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.player.recover();
|
|
|
|
|
player.addTempSkill('shengyan2','phaseAfter');
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
expose:0.2
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
shengyan2:{},
|
|
|
|
|
liechao:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return !player.isTurnedOver()&&player.num('h')<=player.hp;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.draw(4);
|
|
|
|
|
player.turnOver();
|
|
|
|
|
player.skip('phaseDiscard');
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:10,
|
|
|
|
|
result:{
|
|
|
|
|
player:1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
qingliu:{
|
|
|
|
|
trigger:{player:'damageBefore'},
|
|
|
|
|
filter:function(event){
|
|
|
|
|
return event.nature=='fire';
|
|
|
|
|
},
|
|
|
|
|
forced:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.untrigger();
|
|
|
|
|
trigger.finish();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
nofire:true,
|
|
|
|
|
effect:{
|
|
|
|
|
target:function(card,player,target,current){
|
|
|
|
|
if(get.tag(card,'fireDamage')) return 0;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2015-06-27 16:21:25 +00:00
|
|
|
|
zhongjia:{
|
|
|
|
|
trigger:{player:'damageEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event){
|
|
|
|
|
return event.num>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.changeHujia();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
nohujia:true,
|
|
|
|
|
skillTagFilter:function(player){
|
2017-01-16 02:22:48 +00:00
|
|
|
|
return player.hp>player.num('h');
|
2015-06-27 16:21:25 +00:00
|
|
|
|
},
|
|
|
|
|
threaten:function(player,target){
|
|
|
|
|
if(!target.hujia) return 0.8;
|
|
|
|
|
},
|
|
|
|
|
effect:{
|
2015-06-27 16:36:03 +00:00
|
|
|
|
target:function(card,player){
|
2015-06-27 16:21:25 +00:00
|
|
|
|
if(get.tag(card,'damage')){
|
2016-08-13 07:28:11 +00:00
|
|
|
|
if(player.hasSkill('jueqing')) return [1,-1];
|
2015-06-27 16:21:25 +00:00
|
|
|
|
return 0.8;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
dunji:{
|
|
|
|
|
enable:'phaseUse',
|
2017-01-16 02:22:48 +00:00
|
|
|
|
usable:1,
|
2015-06-27 16:21:25 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.hujia?true:false;
|
|
|
|
|
},
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return player!=target;
|
|
|
|
|
},
|
|
|
|
|
selectTarget:function(){
|
|
|
|
|
return [1,_status.event.player.hujia];
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
if(target==targets[0]){
|
|
|
|
|
player.changeHujia(-player.hujia);
|
|
|
|
|
}
|
|
|
|
|
target.damage();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:9,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
2017-01-16 02:22:48 +00:00
|
|
|
|
var eff=ai.get.damageEffect(target,player,target)+0.5;
|
|
|
|
|
if(eff>0&&eff<=0.5) return 0;
|
|
|
|
|
return eff;
|
2015-06-27 16:21:25 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
fengxing:{
|
2017-01-18 08:58:53 +00:00
|
|
|
|
trigger:{player:'loseEnd'},
|
|
|
|
|
direct:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return _status.currentPhase!=player&&!player.hasSkill('fengxing2')&&player.num('he')>0;
|
2015-06-27 16:21:25 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
2017-01-18 08:58:53 +00:00
|
|
|
|
'step 0'
|
|
|
|
|
player.addTempSkill('fengxing2','phaseAfter');
|
|
|
|
|
player.chooseToDiscard('he',get.prompt('fengxing')).set('ai',function(card){
|
|
|
|
|
return 7-ai.get.value(card);
|
|
|
|
|
}).logSkill='fengxing';
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
player.draw(2);
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:0.6
|
2015-06-27 16:21:25 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
2017-01-18 08:58:53 +00:00
|
|
|
|
fengxing2:{},
|
2015-06-27 16:21:25 +00:00
|
|
|
|
fengxian:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target.num('h')>0;
|
|
|
|
|
},
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
content:function(){
|
|
|
|
|
target.chooseToDiscard(true);
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:8,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
var nh=target.num('h');
|
|
|
|
|
switch(nh){
|
|
|
|
|
case 0:return 0;
|
|
|
|
|
case 1:return -1.5;
|
|
|
|
|
case 2:return -1.3;
|
|
|
|
|
case 3:return -1;
|
|
|
|
|
default:return -0.8;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
qiaodong:{
|
|
|
|
|
enable:['chooseToRespond'],
|
|
|
|
|
filterCard:{type:'equip'},
|
2015-08-15 09:10:06 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.num('he',{type:'equip'})>0;
|
|
|
|
|
},
|
2015-06-27 16:21:25 +00:00
|
|
|
|
viewAs:{name:'shan'},
|
|
|
|
|
position:'he',
|
|
|
|
|
prompt:'将一张装备牌当闪使用或打出',
|
|
|
|
|
check:function(){return 1},
|
|
|
|
|
ai:{
|
|
|
|
|
respondShan:true,
|
|
|
|
|
skillTagFilter:function(player){
|
|
|
|
|
if(!player.num('he',{type:'equip'})) return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-03-18 09:59:45 +00:00
|
|
|
|
hsmengjing_mengye:{
|
2015-11-21 05:30:26 +00:00
|
|
|
|
trigger:{player:'phaseEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
priority:-1,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.num('he')>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.discard(player.get('he'));
|
2016-03-18 09:59:45 +00:00
|
|
|
|
player.removeSkill('hsmengjing_mengye');
|
2015-11-21 05:30:26 +00:00
|
|
|
|
},
|
|
|
|
|
mark:'image',
|
|
|
|
|
intro:{
|
|
|
|
|
content:'回合结束阶段,弃置所有牌'
|
|
|
|
|
}
|
|
|
|
|
},
|
2015-06-27 16:21:25 +00:00
|
|
|
|
zhanhou:{
|
|
|
|
|
enable:'phaseUse',
|
2015-12-15 05:13:47 +00:00
|
|
|
|
filterCard:{subtype:'equip2'},
|
|
|
|
|
position:'he',
|
2015-08-15 09:10:06 +00:00
|
|
|
|
filter:function(event,player){
|
2015-12-15 05:13:47 +00:00
|
|
|
|
return player.num('he',{subtype:'equip2'})>0;
|
2015-08-15 09:10:06 +00:00
|
|
|
|
},
|
2015-12-15 05:13:47 +00:00
|
|
|
|
check:function(card){
|
|
|
|
|
return 7-ai.get.value(card);
|
2015-06-27 16:21:25 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.changeHujia();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
2015-12-15 05:13:47 +00:00
|
|
|
|
order:9.5,
|
2015-06-27 16:21:25 +00:00
|
|
|
|
result:{
|
|
|
|
|
player:1
|
|
|
|
|
}
|
|
|
|
|
},
|
2015-11-21 05:30:26 +00:00
|
|
|
|
// mod:{
|
|
|
|
|
// globalFrom:function(from,to,distance){
|
|
|
|
|
// return distance-from.hujia;
|
|
|
|
|
// }
|
|
|
|
|
// },
|
2015-06-27 16:21:25 +00:00
|
|
|
|
},
|
|
|
|
|
shijie:{
|
2015-06-19 15:31:36 +00:00
|
|
|
|
trigger:{player:'phaseEnd'},
|
2015-06-27 16:21:25 +00:00
|
|
|
|
direct:true,
|
2015-06-19 15:31:36 +00:00
|
|
|
|
filter:function(event,player){
|
2015-06-27 16:21:25 +00:00
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
if(game.players[i]!=player&&game.players[i].num('h')){
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
2016-09-20 05:06:35 +00:00
|
|
|
|
player.chooseTarget(get.prompt('shijie'),function(card,player,target){
|
2015-06-27 16:21:25 +00:00
|
|
|
|
return player!=target&&target.num('h')>0;
|
|
|
|
|
}).ai=function(target){
|
|
|
|
|
return 11-ai.get.attitude(player,target);
|
|
|
|
|
};
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
player.logSkill('shijie',result.targets);
|
|
|
|
|
var target=result.targets[0];
|
2017-01-13 18:51:13 +00:00
|
|
|
|
player.gain(target.get('h').randomGet(),target);
|
2015-06-27 16:21:25 +00:00
|
|
|
|
event.target=target;
|
|
|
|
|
target.$give(1,player);
|
|
|
|
|
game.delay();
|
|
|
|
|
event.target.draw();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
expose:0.1
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
shengguang:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
filterCard:{color:'red'},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.num('he',{color:'red'})>0;
|
|
|
|
|
},
|
|
|
|
|
position:'he',
|
|
|
|
|
usable:1,
|
|
|
|
|
check:function(card){
|
|
|
|
|
return 9-ai.get.value(card)
|
|
|
|
|
},
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
if(player.storage.anying) return true;
|
|
|
|
|
if(target.hp>=target.maxHp) return false;
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
if(player.storage.anying){
|
|
|
|
|
target.loseHp();
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
target.recover();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:9,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
if(player.storage.anying) return -1;
|
|
|
|
|
if(target.hp==1) return 5;
|
|
|
|
|
if(player==target&&player.num('h')>player.hp) return 5;
|
|
|
|
|
return 2;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
threaten:2,
|
|
|
|
|
expose:0.2
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
xinci:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
filterCard:{color:'black'},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.num('he',{color:'black'})>0;
|
|
|
|
|
},
|
|
|
|
|
position:'he',
|
|
|
|
|
usable:1,
|
|
|
|
|
mark:true,
|
|
|
|
|
intro:{
|
|
|
|
|
content:'已进入暗影形态'
|
|
|
|
|
},
|
|
|
|
|
check:function(card){
|
|
|
|
|
return 9-ai.get.value(card)
|
|
|
|
|
},
|
|
|
|
|
filterTarget:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
target.loseHp();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:9,
|
|
|
|
|
result:{
|
|
|
|
|
target:-1
|
|
|
|
|
},
|
|
|
|
|
threaten:2,
|
|
|
|
|
expose:0.2
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
anying:{
|
|
|
|
|
unique:true,
|
|
|
|
|
enable:'phaseUse',
|
2015-12-30 04:00:49 +00:00
|
|
|
|
skillAnimation:'epic',
|
|
|
|
|
animationColor:'thunder',
|
2015-06-27 16:21:25 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return !player.storage.anying&&player.num('he',{color:'black'})>1;
|
|
|
|
|
},
|
|
|
|
|
selectCard:2,
|
|
|
|
|
filterCard:{color:'black'},
|
|
|
|
|
position:'he',
|
|
|
|
|
check:function(card){
|
|
|
|
|
return 5-ai.get.value(card);
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.storage.anying=true;
|
2017-01-23 09:28:05 +00:00
|
|
|
|
player.awakenSkill('anying');
|
2015-06-27 16:21:25 +00:00
|
|
|
|
player.removeSkill('shengguang');
|
|
|
|
|
player.addSkill('xinci');
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:1,
|
|
|
|
|
result:{
|
|
|
|
|
player:1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
bianxing:{
|
|
|
|
|
trigger:{global:'useCard'},
|
|
|
|
|
filter:function(event,player){
|
2016-08-13 07:28:11 +00:00
|
|
|
|
if(player.hasSkill('bianxing2')) return false;
|
2015-06-27 16:21:25 +00:00
|
|
|
|
if(event.player==player) return false;
|
|
|
|
|
if(_status.currentPhase!=event.player) return false;
|
|
|
|
|
if(!event.targets) return false;
|
|
|
|
|
if(event.targets.length!=1) return false;
|
2015-08-15 09:10:06 +00:00
|
|
|
|
if(event.targets[0]==event.player) return false;
|
2015-06-27 16:21:25 +00:00
|
|
|
|
var hs=player.get('h');
|
|
|
|
|
for(var i=0;i<hs.length;i++){
|
|
|
|
|
if(hs[i].name!=event.card.name){
|
2015-08-15 09:10:06 +00:00
|
|
|
|
var card=hs[i];
|
2015-09-16 07:31:41 +00:00
|
|
|
|
if(get.type(card)=='basic'&&get.info(card.enable)){
|
2015-08-15 09:10:06 +00:00
|
|
|
|
return true;
|
2015-06-27 16:21:25 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return false;
|
2015-06-19 15:31:36 +00:00
|
|
|
|
},
|
|
|
|
|
direct:true,
|
|
|
|
|
content:function(){
|
2015-06-27 16:21:25 +00:00
|
|
|
|
'step 0'
|
|
|
|
|
var eff=ai.get.effect(trigger.targets[0],trigger.card,trigger.player,player);
|
|
|
|
|
var att=ai.get.attitude(player,trigger.player);
|
2016-09-20 05:06:35 +00:00
|
|
|
|
player.chooseCard(get.prompt('bianxing'),function(card){
|
2015-08-15 09:10:06 +00:00
|
|
|
|
if(card.name!=trigger.card.name){
|
2015-09-16 07:31:41 +00:00
|
|
|
|
if(get.type(card)=='basic'&&get.info(card).enable){
|
|
|
|
|
return true;
|
|
|
|
|
}
|
2015-06-19 15:31:36 +00:00
|
|
|
|
}
|
2015-06-27 16:21:25 +00:00
|
|
|
|
return false;
|
|
|
|
|
}).ai=function(card){
|
|
|
|
|
if(att>=0) return 0;
|
2015-08-15 09:10:06 +00:00
|
|
|
|
if(card.name=='tao'||card.name=='caoyao'){
|
|
|
|
|
if(trigger.targets[0].hp==trigger.targets[0].maxHp) return 0;
|
|
|
|
|
}
|
|
|
|
|
if(eff>=0) return 0;
|
|
|
|
|
return ai.get.effect(trigger.targets[0],card,trigger.player,player);
|
2015-06-19 15:31:36 +00:00
|
|
|
|
};
|
2015-06-27 16:21:25 +00:00
|
|
|
|
'step 1'
|
2015-06-19 15:31:36 +00:00
|
|
|
|
if(result.bool){
|
2015-06-27 16:21:25 +00:00
|
|
|
|
var card=result.cards[0];
|
|
|
|
|
player.lose(result.cards);
|
|
|
|
|
event.cards=result.cards;
|
|
|
|
|
player.logSkill('bianxing',trigger.player);
|
2015-12-08 13:54:44 +00:00
|
|
|
|
game.log(player,'将',trigger.card,'变为',result.cards);
|
2015-06-27 16:21:25 +00:00
|
|
|
|
game.delay(0.5);
|
|
|
|
|
trigger.untrigger();
|
|
|
|
|
trigger.card=card;
|
|
|
|
|
trigger.cards=[card];
|
|
|
|
|
player.addTempSkill('bianxing2','phaseAfter');
|
2015-06-19 15:31:36 +00:00
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
2015-06-27 16:21:25 +00:00
|
|
|
|
'step 2'
|
|
|
|
|
player.$throw(event.cards);
|
|
|
|
|
game.delay();
|
2015-08-15 09:10:06 +00:00
|
|
|
|
'step 3'
|
|
|
|
|
// player.draw();
|
|
|
|
|
'step 4'
|
2015-06-27 16:21:25 +00:00
|
|
|
|
trigger.trigger('useCard');
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
expose:0.2,
|
|
|
|
|
threaten:1.8
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
bingjia:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
filter:function(event,player){
|
2016-08-13 07:28:11 +00:00
|
|
|
|
return !player.hasSkill('bingjia2');
|
2015-06-27 16:21:25 +00:00
|
|
|
|
},
|
2015-08-15 09:10:06 +00:00
|
|
|
|
filterCard:true,
|
2015-06-27 16:21:25 +00:00
|
|
|
|
check:function(card){
|
|
|
|
|
return 6-ai.get.value(card);
|
|
|
|
|
},
|
|
|
|
|
discard:false,
|
|
|
|
|
prepare:function(cards,player){
|
2017-01-14 04:56:52 +00:00
|
|
|
|
player.$give(1,player,false);
|
2015-06-27 16:21:25 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.storage.bingjia=cards[0];
|
|
|
|
|
player.addSkill('bingjia2');
|
2015-11-04 01:59:00 +00:00
|
|
|
|
game.addVideo('storage',player,['bingjia',get.cardInfo(cards[0]),'card']);
|
2015-06-27 16:21:25 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:1,
|
|
|
|
|
result:{
|
|
|
|
|
player:1
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
bingjia2:{
|
|
|
|
|
mark:true,
|
|
|
|
|
trigger:{target:'useCardToBegin'},
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event,player){
|
2015-08-15 09:10:06 +00:00
|
|
|
|
return event.player!=player&&get.suit(event.card)==get.suit(player.storage.bingjia);
|
2015-06-27 16:21:25 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.showCards([player.storage.bingjia],get.translation(player)+'发动了【冰甲】');
|
2016-12-19 09:40:20 +00:00
|
|
|
|
player.removeSkill('bingjia2');
|
|
|
|
|
game.addVideo('storage',player,['bingjia',null]);
|
2015-06-27 16:21:25 +00:00
|
|
|
|
'step 1'
|
|
|
|
|
ui.discardPile.appendChild(player.storage.bingjia);
|
|
|
|
|
delete player.storage.bingjia;
|
2015-08-15 09:10:06 +00:00
|
|
|
|
player.changeHujia();
|
2016-12-19 09:40:20 +00:00
|
|
|
|
player.addTempSkill('bingjia3','phaseAfter');
|
2015-06-27 16:21:25 +00:00
|
|
|
|
},
|
|
|
|
|
intro:{
|
|
|
|
|
mark:function(dialog,content,player){
|
|
|
|
|
if(player==game.me||player.isUnderControl()){
|
|
|
|
|
dialog.add([player.storage.bingjia]);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
return '已发动冰甲';
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
content:function(content,player){
|
|
|
|
|
if(player==game.me||player.isUnderControl()){
|
|
|
|
|
return get.translation(player.storage.bingjia);
|
|
|
|
|
}
|
|
|
|
|
return '已发动冰甲';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-12-19 09:40:20 +00:00
|
|
|
|
bingjia3:{
|
|
|
|
|
trigger:{player:'damageBefore'},
|
|
|
|
|
mark:true,
|
|
|
|
|
forced:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.untrigger();
|
|
|
|
|
trigger.finish();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
nofire:true,
|
|
|
|
|
nothunder:true,
|
|
|
|
|
nodamage:true,
|
|
|
|
|
effect:{
|
|
|
|
|
target:function(card,player,target,current){
|
|
|
|
|
if(get.tag(card,'damage')) return [0,0];
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
intro:{
|
|
|
|
|
content:'防止所有伤害'
|
|
|
|
|
}
|
|
|
|
|
},
|
2015-06-27 16:21:25 +00:00
|
|
|
|
bianxing2:{},
|
2017-01-18 08:58:53 +00:00
|
|
|
|
zuzhou:{
|
2015-06-27 16:21:25 +00:00
|
|
|
|
trigger:{player:'phaseBegin'},
|
2017-01-18 08:58:53 +00:00
|
|
|
|
filter:function(event,player){
|
2015-09-03 03:49:14 +00:00
|
|
|
|
if(!player.num('h',{suit:'spade'})) return false;
|
2015-06-27 16:21:25 +00:00
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
if(game.players[i].num('j','shandian')){
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
forced:true,
|
|
|
|
|
check:function(){
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
2017-01-18 08:58:53 +00:00
|
|
|
|
var card=get.cardPile('shandian',true);
|
2015-06-27 16:21:25 +00:00
|
|
|
|
if(card){
|
|
|
|
|
player.addJudge(card);
|
2017-01-18 08:58:53 +00:00
|
|
|
|
player.$draw(card);
|
|
|
|
|
game.delay();
|
2015-06-27 16:21:25 +00:00
|
|
|
|
}
|
2015-06-29 02:51:59 +00:00
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
2015-06-27 16:21:25 +00:00
|
|
|
|
'step 1'
|
|
|
|
|
game.delay();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:1.5
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mdzhoufu:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
filterCard:{color:'black'},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.num('h',{color:'black'})>0;
|
|
|
|
|
},
|
|
|
|
|
filterTarget:function(card,player,target){
|
2016-08-13 07:28:11 +00:00
|
|
|
|
return player!=target&&!target.hasSkill('mdzhoufu2');
|
2015-06-27 16:21:25 +00:00
|
|
|
|
},
|
2017-01-14 04:56:52 +00:00
|
|
|
|
prepare:'throw',
|
2015-06-27 16:21:25 +00:00
|
|
|
|
discard:false,
|
|
|
|
|
content:function(){
|
|
|
|
|
target.$gain2(cards);
|
|
|
|
|
target.storage.mdzhoufu2=cards[0];
|
|
|
|
|
target.addSkill('mdzhoufu2');
|
|
|
|
|
target.storage.mdzhoufu3=player;
|
2015-11-04 01:59:00 +00:00
|
|
|
|
game.addVideo('storage',target,['mdzhoufu2',get.cardInfo(cards[0]),'card']);
|
2015-06-27 16:21:25 +00:00
|
|
|
|
ui.special.appendChild(cards[0]);
|
|
|
|
|
},
|
|
|
|
|
check:function(card){
|
2015-06-29 02:51:59 +00:00
|
|
|
|
if(get.suit(card)=='spade'&&card.number>=2&&card.number<=9){
|
|
|
|
|
return 6-ai.get.value(card);
|
|
|
|
|
}
|
|
|
|
|
return -1;
|
2015-06-27 16:21:25 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
2015-08-15 09:10:06 +00:00
|
|
|
|
tag:{
|
|
|
|
|
rejudge:0.1,
|
|
|
|
|
},
|
2015-06-27 16:36:03 +00:00
|
|
|
|
threaten:1.5,
|
2015-06-27 16:21:25 +00:00
|
|
|
|
expose:0.1,
|
2015-06-29 02:51:59 +00:00
|
|
|
|
order:10,
|
2015-06-27 16:21:25 +00:00
|
|
|
|
result:{
|
2015-06-29 02:51:59 +00:00
|
|
|
|
target:-1
|
2015-06-27 16:21:25 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mdzhoufu2:{
|
|
|
|
|
trigger:{player:'judge'},
|
|
|
|
|
forced:true,
|
|
|
|
|
priority:10,
|
|
|
|
|
mark:'card',
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
ui.discardPile.appendChild(player.storage.mdzhoufu2);
|
|
|
|
|
player.$throw(player.storage.mdzhoufu2);
|
2015-11-06 10:05:08 +00:00
|
|
|
|
if(player.storage.mdzhoufu2.clone){
|
|
|
|
|
player.storage.mdzhoufu2.clone.classList.add('thrownhighlight');
|
|
|
|
|
game.addVideo('highlightnode',player,get.cardInfo(player.storage.mdzhoufu2));
|
|
|
|
|
}
|
2015-06-27 16:21:25 +00:00
|
|
|
|
if(player.storage.mdzhoufu3.isAlive()){
|
2015-09-03 03:49:14 +00:00
|
|
|
|
// player.storage.mdzhoufu3.draw();
|
2017-01-18 08:58:53 +00:00
|
|
|
|
player.storage.mdzhoufu3.gain(player.judging[0]);
|
|
|
|
|
player.storage.mdzhoufu3.$gain2(player.judging[0]);
|
2015-06-19 15:31:36 +00:00
|
|
|
|
}
|
|
|
|
|
else{
|
2015-12-12 08:37:15 +00:00
|
|
|
|
ui.discardPile.appendChild(player.judging[0]);
|
2015-06-27 16:21:25 +00:00
|
|
|
|
game.delay(1.5);
|
|
|
|
|
}
|
2017-01-18 08:58:53 +00:00
|
|
|
|
player.removeSkill('mdzhoufu2');
|
2015-06-27 16:21:25 +00:00
|
|
|
|
"step 1"
|
2015-12-12 08:37:15 +00:00
|
|
|
|
player.judging[0]=player.storage.mdzhoufu2;
|
2015-06-27 16:21:25 +00:00
|
|
|
|
trigger.position.appendChild(player.storage.mdzhoufu2);
|
|
|
|
|
// trigger.untrigger();
|
2015-12-08 13:54:44 +00:00
|
|
|
|
game.log(player,'的判定牌改为',player.storage.mdzhoufu2);
|
2015-06-27 16:21:25 +00:00
|
|
|
|
delete player.storage.mdzhoufu2;
|
|
|
|
|
delete player.storage.mdzhoufu3;
|
|
|
|
|
},
|
|
|
|
|
intro:{
|
|
|
|
|
content:'card'
|
|
|
|
|
},
|
|
|
|
|
},
|
2017-01-18 08:58:53 +00:00
|
|
|
|
zuzhou_old:{
|
2015-06-27 16:21:25 +00:00
|
|
|
|
trigger:{player:'damageEnd',source:'damageEnd'},
|
|
|
|
|
check:function(event,player){
|
|
|
|
|
var target=(player==event.player)?event.source:event.player;
|
|
|
|
|
return ai.get.attitude(player,target)<0;
|
|
|
|
|
},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
var target=(player==event.player)?event.source:event.player;
|
|
|
|
|
return target.isAlive();
|
|
|
|
|
},
|
|
|
|
|
prompt:function(event,player){
|
|
|
|
|
var target=(player==event.player)?event.source:event.player;
|
2017-01-18 08:58:53 +00:00
|
|
|
|
return get.prompt('zuzhou',target);
|
2015-06-27 16:21:25 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
event.target=(player==trigger.player)?trigger.source:trigger.player;
|
|
|
|
|
event.target.judge(function(card){
|
|
|
|
|
return get.color(card)=='black'?-1:0;
|
|
|
|
|
});
|
|
|
|
|
"step 1"
|
|
|
|
|
if(result.color=='black'){
|
2015-06-19 15:31:36 +00:00
|
|
|
|
event.target.loseHp();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
expose:0.1,
|
|
|
|
|
threaten:1.3
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
xianzhi:{
|
|
|
|
|
trigger:{global:'judgeBegin'},
|
2016-08-28 00:30:25 +00:00
|
|
|
|
frequent:true,
|
2015-06-19 15:31:36 +00:00
|
|
|
|
filter:function(){
|
|
|
|
|
return ui.cardPile.childNodes.length>1;
|
|
|
|
|
},
|
2016-08-28 00:30:25 +00:00
|
|
|
|
check:function(){
|
|
|
|
|
return false;
|
|
|
|
|
},
|
2015-06-19 15:31:36 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var str='';
|
|
|
|
|
if(trigger.card) str=get.translation(trigger.card.viewAs||trigger.card.name);
|
|
|
|
|
else if(trigger.skill) str=get.translation(trigger.skill);
|
|
|
|
|
else str=get.translation(trigger.parent.name);
|
|
|
|
|
|
|
|
|
|
var cards=[ui.cardPile.childNodes[0],ui.cardPile.childNodes[1]];
|
|
|
|
|
var att=ai.get.attitude(player,trigger.player);
|
|
|
|
|
var delta=trigger.judge(ui.cardPile.childNodes[1])-trigger.judge(ui.cardPile.childNodes[0]);
|
2017-01-16 07:48:07 +00:00
|
|
|
|
player.chooseControl('调换顺序','cancel2',
|
2015-06-19 15:31:36 +00:00
|
|
|
|
ui.create.dialog('先知:'+get.translation(trigger.player)+'的'+str+'判定',cards,'hidden')).ai=function(){
|
|
|
|
|
if(att*delta>0) return '调换顺序';
|
2017-01-16 07:48:07 +00:00
|
|
|
|
else return 'cancel2';
|
2015-06-19 15:31:36 +00:00
|
|
|
|
};
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.control=='调换顺序'){
|
|
|
|
|
var card=ui.cardPile.firstChild;
|
|
|
|
|
ui.cardPile.removeChild(card);
|
|
|
|
|
ui.cardPile.insertBefore(card,ui.cardPile.firstChild.nextSibling);
|
2015-12-08 13:54:44 +00:00
|
|
|
|
game.log(player,'调换了牌堆顶两张牌的顺序');
|
2015-06-19 15:31:36 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
expose:0.1,
|
2015-06-27 16:21:25 +00:00
|
|
|
|
tag:{
|
|
|
|
|
rejudge:0.5
|
|
|
|
|
}
|
2015-06-19 15:31:36 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
jingxiang:{
|
|
|
|
|
trigger:{player:'chooseToRespondBegin'},
|
|
|
|
|
direct:true,
|
2017-01-18 08:58:53 +00:00
|
|
|
|
usable:1,
|
2015-06-19 15:31:36 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(event.responded) return false;
|
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
if(game.players[i]!=player&&game.players[i].num('h')){
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
2017-01-18 08:58:53 +00:00
|
|
|
|
player.chooseTarget(get.prompt('jingxiang'),function(card,player,target){
|
|
|
|
|
return target!=player&&target.num('h')>0;
|
|
|
|
|
}).ai=function(target){
|
|
|
|
|
return 1-ai.get.attitude(player,target);
|
|
|
|
|
};
|
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool){
|
|
|
|
|
var target=result.targets[0];
|
|
|
|
|
player.logSkill('jingxiang',target);
|
|
|
|
|
event.target=target;
|
|
|
|
|
var cards=target.get('h');
|
|
|
|
|
player.chooseCardButton('选择'+get.translation(target)+'的一张卡手牌打出',cards).filterButton=function(button){
|
|
|
|
|
return trigger.filterCard(button.link);
|
2015-06-19 15:31:36 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2017-01-18 08:58:53 +00:00
|
|
|
|
else{
|
2015-06-19 15:31:36 +00:00
|
|
|
|
event.finish();
|
|
|
|
|
}
|
2017-01-18 08:58:53 +00:00
|
|
|
|
"step 2"
|
2015-06-19 15:31:36 +00:00
|
|
|
|
if(result.bool){
|
2017-01-18 08:58:53 +00:00
|
|
|
|
game.log(player,'使用了',event.target,'的手牌');
|
|
|
|
|
event.target.$throw(result.links);
|
2015-06-19 15:31:36 +00:00
|
|
|
|
event.target.lose(result.links);
|
|
|
|
|
trigger.untrigger();
|
2017-01-18 08:58:53 +00:00
|
|
|
|
trigger.animate=false;
|
2015-06-19 15:31:36 +00:00
|
|
|
|
trigger.responded=true;
|
|
|
|
|
result.buttons[0].link.remove();
|
|
|
|
|
trigger.result={bool:true,card:result.buttons[0].link}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
effect:{
|
2015-06-27 16:36:03 +00:00
|
|
|
|
target:function(card){
|
2017-01-18 08:58:53 +00:00
|
|
|
|
if(get.tag(card,'respondShan')) return 0.4;
|
|
|
|
|
if(get.tag(card,'respondSha')) return 0.4;
|
2015-06-19 15:31:36 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
2015-06-13 06:53:40 +00:00
|
|
|
|
wlianji:{
|
|
|
|
|
trigger:{player:'phaseEnd'},
|
|
|
|
|
frequent:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return get.cardCount(true,player)>player.hp;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.draw(2);
|
|
|
|
|
},
|
|
|
|
|
init:function(player){player.storage.jingce=true},
|
|
|
|
|
intro:{
|
|
|
|
|
content:function(storage,player){
|
|
|
|
|
if(_status.currentPhase==player) return '已使用'+get.cardCount(true,player)+'张牌';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mengun:{
|
|
|
|
|
trigger:{global:'useCardToBefore'},
|
|
|
|
|
priority:12,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(event.player==player) return false;
|
|
|
|
|
if(_status.currentPhase!=event.player) return false;
|
2016-08-13 07:28:11 +00:00
|
|
|
|
if(event.player.hasSkill('mengun2')) return false;
|
2015-06-13 06:53:40 +00:00
|
|
|
|
if(get.itemtype(event.card)!='card') return false;
|
|
|
|
|
if(!player.num('h',{suit:get.suit(event.card)})) return false;
|
|
|
|
|
return get.type(event.card)=='basic';
|
|
|
|
|
},
|
|
|
|
|
direct:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
var val=ai.get.value(trigger.card);
|
|
|
|
|
var suit=get.suit(trigger.card);
|
|
|
|
|
var eff=ai.get.effect(trigger.target,trigger.card,trigger.player,player);
|
2015-11-21 05:30:26 +00:00
|
|
|
|
var next=player.chooseToDiscard('是否对'+get.translation(trigger.player)+'使用的'+get.translation(trigger.card)+'发动【闷棍】?',function(card){
|
2015-06-13 06:53:40 +00:00
|
|
|
|
return get.suit(card)==suit;
|
2015-11-21 05:30:26 +00:00
|
|
|
|
});
|
|
|
|
|
next.logSkill=['mengun',trigger.player];
|
|
|
|
|
next.ai=function(card){
|
2015-06-13 06:53:40 +00:00
|
|
|
|
if(eff>=0) return 0;
|
|
|
|
|
return Math.min(8,1+val)-ai.get.value(card);
|
|
|
|
|
}
|
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool){
|
2015-12-08 13:54:44 +00:00
|
|
|
|
game.log(trigger.player,'收回了',trigger.cards);
|
2015-06-13 06:53:40 +00:00
|
|
|
|
trigger.untrigger();
|
|
|
|
|
trigger.finish();
|
|
|
|
|
game.delay();
|
|
|
|
|
}
|
2015-08-15 09:10:06 +00:00
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
2015-06-13 06:53:40 +00:00
|
|
|
|
"step 2"
|
|
|
|
|
trigger.player.$gain2(trigger.cards);
|
|
|
|
|
trigger.player.gain(trigger.cards);
|
|
|
|
|
trigger.player.storage.mengun2=trigger.cards[0];
|
2015-11-04 01:59:00 +00:00
|
|
|
|
game.addVideo('storage',player,['mengun2',get.cardInfo(trigger.cards[0]),'card']);
|
2015-06-13 06:53:40 +00:00
|
|
|
|
trigger.player.addTempSkill('mengun2','phaseEnd');
|
2016-08-28 00:30:25 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
expose:0.2
|
2015-06-13 06:53:40 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
mengun2:{
|
|
|
|
|
mark:'card',
|
|
|
|
|
mod:{
|
|
|
|
|
cardEnabled:function(card,player){
|
|
|
|
|
if(card==player.storage.mengun2) return false;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
intro:{
|
|
|
|
|
content:'card',
|
|
|
|
|
onunmark:function(storage,player){
|
|
|
|
|
delete player.storage.mengun2;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
jianren:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.get('e','1')?true:false;
|
|
|
|
|
},
|
|
|
|
|
filterCard:function(card,player){
|
|
|
|
|
return card==player.get('e','1');
|
|
|
|
|
},
|
|
|
|
|
position:'e',
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target!=player;
|
|
|
|
|
},
|
|
|
|
|
selectCard:-1,
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
content:function(){
|
|
|
|
|
target.damage();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:9,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
return ai.get.damageEffect(target,player,target);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2015-06-10 09:10:24 +00:00
|
|
|
|
jihuo:{
|
2016-06-09 15:06:55 +00:00
|
|
|
|
trigger:{player:'phaseAfter'},
|
2015-06-10 09:10:24 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return !player.storage.jihuo&&player.num('h')>0;
|
|
|
|
|
},
|
|
|
|
|
direct:true,
|
2017-01-28 12:29:36 +00:00
|
|
|
|
priority:-50,
|
2015-06-10 09:10:24 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
2016-09-20 05:06:35 +00:00
|
|
|
|
var next=player.chooseToDiscard(get.prompt('jihuo'));
|
2015-11-21 05:30:26 +00:00
|
|
|
|
next.ai=ai.get.unuseful2;
|
|
|
|
|
next.logSkill='jihuo';
|
2015-06-10 09:10:24 +00:00
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool){
|
|
|
|
|
player.storage.jihuo=true;
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
"step 2"
|
|
|
|
|
player.phase();
|
|
|
|
|
"step 3"
|
|
|
|
|
player.storage.jihuo=false;
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:1.2
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tzhenji:{
|
2015-06-12 05:35:29 +00:00
|
|
|
|
trigger:{player:'discardAfter'},
|
|
|
|
|
direct:true,
|
2015-08-15 09:10:06 +00:00
|
|
|
|
filter:function(event,player){
|
2016-08-13 07:28:11 +00:00
|
|
|
|
if(player.hasSkill('tzhenji2')){
|
2015-08-15 09:10:06 +00:00
|
|
|
|
return false;
|
|
|
|
|
}
|
2015-06-12 05:35:29 +00:00
|
|
|
|
if(event.cards){
|
|
|
|
|
for(var i=0;i<event.cards.length;i++){
|
|
|
|
|
if(get.color(event.cards[i])=='black') return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0";
|
2016-09-20 05:06:35 +00:00
|
|
|
|
player.chooseTarget(get.prompt('tzhenji')).ai=function(target){
|
2015-08-15 09:10:06 +00:00
|
|
|
|
var bool=ai.get.attitude(player,target)>0;
|
|
|
|
|
return ai.get.damageEffect(target,player,player,'thunder')-(bool?1:0);
|
2015-06-12 05:35:29 +00:00
|
|
|
|
};
|
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool){
|
|
|
|
|
game.delay(0.5);
|
|
|
|
|
var target=result.targets[0];
|
|
|
|
|
player.logSkill('tzhenji',target,'thunder');
|
|
|
|
|
var cs=target.get('he');
|
|
|
|
|
if(cs.length){
|
|
|
|
|
target.discard(cs.randomGet());
|
|
|
|
|
}
|
2015-09-22 03:53:35 +00:00
|
|
|
|
target.damage('thunder');
|
2015-08-15 09:10:06 +00:00
|
|
|
|
player.addTempSkill('tzhenji2','phaseAfter');
|
2015-06-12 05:35:29 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
2015-06-14 05:07:39 +00:00
|
|
|
|
threaten:1.2,
|
|
|
|
|
expose:0.3,
|
|
|
|
|
effect:{
|
2015-06-27 16:36:03 +00:00
|
|
|
|
target:function(card,player,target){
|
2015-06-14 05:07:39 +00:00
|
|
|
|
if(get.tag(card,'loseCard')&&target.num('he')){
|
|
|
|
|
return 0.7;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2015-06-12 05:35:29 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
2015-08-15 09:10:06 +00:00
|
|
|
|
tzhenji2:{},
|
2015-06-12 05:35:29 +00:00
|
|
|
|
tzhenji_old:{
|
|
|
|
|
trigger:{player:['useCard','respondEnd']},
|
|
|
|
|
filter:function(event){
|
|
|
|
|
return get.suit(event.card)=='spade';
|
2015-06-10 09:10:24 +00:00
|
|
|
|
},
|
|
|
|
|
direct:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0";
|
2016-09-20 05:06:35 +00:00
|
|
|
|
player.chooseTarget(get.prompt('tzhenji_old')).ai=function(target){
|
2015-06-10 09:10:24 +00:00
|
|
|
|
return ai.get.damageEffect(target,player,player,'thunder')-1;
|
|
|
|
|
};
|
|
|
|
|
"step 1"
|
|
|
|
|
if(result.bool){
|
|
|
|
|
player.logSkill('tzhenji',result.targets,'thunder');
|
|
|
|
|
event.target=result.targets[0];
|
2015-06-12 05:35:29 +00:00
|
|
|
|
event.target.judge();
|
2015-06-10 09:10:24 +00:00
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
"step 2"
|
2015-06-12 05:35:29 +00:00
|
|
|
|
if(result.color=='red'){
|
|
|
|
|
event.target.damage('fire');
|
|
|
|
|
}
|
|
|
|
|
else{
|
2015-06-10 09:10:24 +00:00
|
|
|
|
event.target.damage('thunder');
|
|
|
|
|
var cs=event.target.get('he');
|
|
|
|
|
if(cs.length){
|
|
|
|
|
event.target.discard(cs.randomGet());
|
|
|
|
|
}
|
2015-06-12 05:35:29 +00:00
|
|
|
|
cs=player.get('he');
|
|
|
|
|
if(cs.length){
|
|
|
|
|
player.discard(cs.randomGet());
|
|
|
|
|
}
|
2015-06-10 09:10:24 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
2015-06-12 05:35:29 +00:00
|
|
|
|
expose:0.2,
|
|
|
|
|
threaten:1.2,
|
|
|
|
|
effect_old:{
|
|
|
|
|
target:function(card,player,target){
|
2015-06-10 09:10:24 +00:00
|
|
|
|
if(get.tag(card,'respondShan')){
|
|
|
|
|
var hastarget=false;
|
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
if(ai.get.attitude(target,game.players[i])<0){
|
|
|
|
|
hastarget=true;break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
var ns=target.num('h','shan');
|
|
|
|
|
var nh=target.num('h');
|
|
|
|
|
if(ns>1){
|
|
|
|
|
return [0,hastarget?1:0];
|
|
|
|
|
}
|
|
|
|
|
if(ns&&nh>=2){
|
|
|
|
|
return [0,0];
|
|
|
|
|
}
|
|
|
|
|
if(nh>3){
|
|
|
|
|
return [0,0];
|
|
|
|
|
}
|
|
|
|
|
if(nh==0){
|
2015-06-12 05:35:29 +00:00
|
|
|
|
return 1.5;
|
2015-06-10 09:10:24 +00:00
|
|
|
|
}
|
|
|
|
|
return [1,0.05];
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tuteng_s:{
|
|
|
|
|
trigger:{player:'phaseUseBegin'},
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
var rand=['tuteng1','tuteng2','tuteng3','tuteng4'];
|
|
|
|
|
for(var i=0;i<player.skills.length;i++){
|
|
|
|
|
rand.remove(player.skills[i]);
|
|
|
|
|
if(rand.length==0) return false;
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
var rand=['tuteng1','tuteng2','tuteng3','tuteng4'];
|
|
|
|
|
for(var i=0;i<player.skills.length;i++){
|
|
|
|
|
rand.remove(player.skills[i]);
|
|
|
|
|
}
|
|
|
|
|
if(rand.length){
|
|
|
|
|
player.addSkill(rand.randomGet());
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
effect:function(card,player){
|
|
|
|
|
if(get.tag(card,'damage')){
|
2016-08-13 07:28:11 +00:00
|
|
|
|
if(player.hasSkill('jueqing')) return [1,1];
|
2015-06-10 09:10:24 +00:00
|
|
|
|
return 1.2;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
threaten:1.3
|
|
|
|
|
},
|
|
|
|
|
group:'tuteng_lose'
|
|
|
|
|
},
|
2015-09-03 03:49:14 +00:00
|
|
|
|
s_tuteng:{
|
|
|
|
|
trigger:{player:'phaseBegin'},
|
|
|
|
|
forced:true,
|
2015-09-22 03:53:35 +00:00
|
|
|
|
unique:true,
|
2015-09-03 03:49:14 +00:00
|
|
|
|
content:function(){
|
2016-05-21 00:27:08 +00:00
|
|
|
|
var rand=['tuteng2','tuteng4','tuteng5','tuteng6','tuteng7','tuteng8'];
|
2015-09-03 03:49:14 +00:00
|
|
|
|
if(player.storage.s_tuteng){
|
|
|
|
|
var rand2=player.storage.s_tuteng;
|
|
|
|
|
for(var i=0;i<3;i++){
|
|
|
|
|
rand.remove(rand2[i]);
|
|
|
|
|
}
|
|
|
|
|
player.removeSkill(rand2.randomRemove());
|
|
|
|
|
var totem=rand.randomGet();
|
|
|
|
|
rand2.push(totem);
|
|
|
|
|
player.addSkill(totem);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
for(var i=0;i<3;i++){
|
|
|
|
|
rand.randomRemove();
|
|
|
|
|
}
|
|
|
|
|
for(var i=0;i<3;i++){
|
|
|
|
|
player.addSkill(rand[i]);
|
|
|
|
|
}
|
|
|
|
|
player.storage.s_tuteng=rand;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:2
|
|
|
|
|
}
|
|
|
|
|
},
|
2015-06-10 09:10:24 +00:00
|
|
|
|
tuteng:{
|
|
|
|
|
enable:'phaseUse',
|
|
|
|
|
usable:1,
|
2015-09-22 03:53:35 +00:00
|
|
|
|
unique:true,
|
|
|
|
|
direct:true,
|
|
|
|
|
check:function(){
|
|
|
|
|
return 0;
|
|
|
|
|
},
|
|
|
|
|
delay:0,
|
|
|
|
|
init:function(){
|
|
|
|
|
for(var i=1;i<=8;i++){
|
|
|
|
|
lib.translate['tuteng'+i+'_info']=lib.skill['tuteng'+i].intro.content;
|
2015-06-10 09:10:24 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
position:'he',
|
2016-05-21 00:27:08 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
var rand=['tuteng1','tuteng2','tuteng3','tuteng4'];
|
|
|
|
|
for(var i=0;i<rand.length;i++){
|
|
|
|
|
if(!player.hasSkill(rand[i])) return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
2015-06-10 09:10:24 +00:00
|
|
|
|
content:function(){
|
2015-09-22 03:53:35 +00:00
|
|
|
|
'step 0'
|
2015-06-10 09:10:24 +00:00
|
|
|
|
var rand=['tuteng1','tuteng2','tuteng3','tuteng4'];
|
2015-09-22 03:53:35 +00:00
|
|
|
|
var rand2=[];
|
|
|
|
|
var randx=[];
|
|
|
|
|
var rand2x=[];
|
|
|
|
|
if(player.storage.tuteng_awake){
|
2016-05-21 00:27:08 +00:00
|
|
|
|
// rand=rand.concat(['tuteng5','tuteng6','tuteng7','tuteng8']);
|
2015-09-22 03:53:35 +00:00
|
|
|
|
}
|
2015-06-10 09:10:24 +00:00
|
|
|
|
for(var i=0;i<player.skills.length;i++){
|
2015-09-22 03:53:35 +00:00
|
|
|
|
if(rand.contains(player.skills[i])){
|
|
|
|
|
rand.remove(player.skills[i]);
|
|
|
|
|
rand2.push(player.skills[i]);
|
|
|
|
|
}
|
2015-06-10 09:10:24 +00:00
|
|
|
|
}
|
2016-05-21 00:27:08 +00:00
|
|
|
|
if(!player.storage.tuteng_awake){
|
|
|
|
|
player.addSkill(rand.randomGet());
|
|
|
|
|
game.delay();
|
|
|
|
|
event.finish();
|
|
|
|
|
return;
|
|
|
|
|
}
|
2015-06-10 09:10:24 +00:00
|
|
|
|
if(rand.length){
|
2016-05-21 00:27:08 +00:00
|
|
|
|
if(event.isMine()&&(rand.length>1||rand2.length>=4)){
|
2015-09-22 03:53:35 +00:00
|
|
|
|
var dialog=ui.create.dialog();
|
|
|
|
|
for(var i=0;i<rand.length;i++){
|
|
|
|
|
randx[i]=['','',rand[i]];
|
|
|
|
|
}
|
|
|
|
|
for(var i=0;i<rand2.length;i++){
|
|
|
|
|
rand2x[i]=['','',rand2[i]];
|
|
|
|
|
}
|
|
|
|
|
dialog.add('选择一个图腾');
|
|
|
|
|
dialog.add([randx,'vcard']);
|
2016-05-21 00:27:08 +00:00
|
|
|
|
if(rand2.length>=4){
|
2015-09-22 03:53:35 +00:00
|
|
|
|
dialog.add('替换一个已有图腾');
|
|
|
|
|
dialog.add([rand2x,'vcard']);
|
|
|
|
|
player.chooseButton(dialog,2,true).filterButton=function(button){
|
|
|
|
|
if(ui.selected.buttons.length){
|
|
|
|
|
var current=ui.selected.buttons[0].name;
|
|
|
|
|
if(rand.contains(current)){
|
|
|
|
|
return rand2.contains(button.name);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
return rand.contains(button.name);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return true;
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
player.chooseButton(dialog,true);
|
|
|
|
|
}
|
|
|
|
|
for(var i=0;i<dialog.buttons.length;i++){
|
|
|
|
|
var item=dialog.buttons[i]
|
|
|
|
|
if(i==4){
|
|
|
|
|
item.parentNode.insertBefore(document.createElement('br'),item);
|
|
|
|
|
}
|
|
|
|
|
item.style.zoom=0.7;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
if(player.hp<player.maxHp&&rand.contains('tuteng1')){
|
|
|
|
|
player.addSkill('tuteng1');
|
|
|
|
|
}
|
|
|
|
|
else{
|
2015-10-08 06:16:37 +00:00
|
|
|
|
if(rand.length>1){
|
|
|
|
|
rand.remove('tuteng1');
|
|
|
|
|
}
|
2015-09-22 03:53:35 +00:00
|
|
|
|
player.addSkill(rand.randomGet());
|
|
|
|
|
}
|
2016-05-21 00:27:08 +00:00
|
|
|
|
// if(rand2.length>=3){
|
|
|
|
|
// player.removeSkill(rand2.randomGet());
|
|
|
|
|
// }
|
2015-09-22 03:53:35 +00:00
|
|
|
|
game.delay();
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
event.finish();
|
|
|
|
|
}
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.buttons.length==1){
|
|
|
|
|
player.addSkill(result.buttons[0].name);
|
|
|
|
|
}
|
|
|
|
|
else if(result.buttons.length==2){
|
|
|
|
|
var skill1=result.buttons[0].name;
|
|
|
|
|
var skill2=result.buttons[1].name;
|
2016-08-13 07:28:11 +00:00
|
|
|
|
if(player.hasSkill(skill1)){
|
2015-09-22 03:53:35 +00:00
|
|
|
|
player.removeSkill(skill1);
|
|
|
|
|
player.addSkill(skill2);
|
|
|
|
|
}
|
|
|
|
|
else{
|
|
|
|
|
player.removeSkill(skill2);
|
|
|
|
|
player.addSkill(skill1);
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-06-10 09:10:24 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
2015-08-15 09:10:06 +00:00
|
|
|
|
order:11,
|
2015-06-10 09:10:24 +00:00
|
|
|
|
result:{
|
|
|
|
|
player:1
|
|
|
|
|
},
|
|
|
|
|
effect:function(card,player){
|
|
|
|
|
if(get.tag(card,'damage')){
|
2016-08-13 07:28:11 +00:00
|
|
|
|
if(player.hasSkill('jueqing')) return;
|
2015-06-10 09:10:24 +00:00
|
|
|
|
return 1.2;
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-07-01 01:31:02 +00:00
|
|
|
|
threaten:2
|
2015-06-10 09:10:24 +00:00
|
|
|
|
},
|
|
|
|
|
group:'tuteng_lose'
|
|
|
|
|
},
|
2015-12-30 04:00:49 +00:00
|
|
|
|
zuling:{
|
|
|
|
|
skillAnimation:'epic',
|
|
|
|
|
animationColor:'thunder',
|
|
|
|
|
trigger:{player:'phaseBegin'},
|
|
|
|
|
forced:true,
|
2016-09-27 03:26:24 +00:00
|
|
|
|
unique:true,
|
2015-12-30 04:00:49 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
if(!player.storage.tuteng_awake){
|
|
|
|
|
var rand=['tuteng1','tuteng2','tuteng3','tuteng4',
|
|
|
|
|
'tuteng5','tuteng6','tuteng7','tuteng8'];
|
|
|
|
|
var num=0;
|
|
|
|
|
for(var i=0;i<player.skills.length;i++){
|
|
|
|
|
if(rand.contains(player.skills[i])) num++;
|
2016-05-21 00:27:08 +00:00
|
|
|
|
if(num>=2){
|
2015-12-30 04:00:49 +00:00
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.storage.tuteng_awake=true;
|
|
|
|
|
player.loseMaxHp();
|
2017-01-23 09:28:05 +00:00
|
|
|
|
player.awakenSkill('zuling');
|
2015-12-30 04:00:49 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
2015-08-15 09:10:06 +00:00
|
|
|
|
tuteng_h:{
|
|
|
|
|
mod:{
|
|
|
|
|
maxHandcard:function(player,num){
|
|
|
|
|
return num-1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2015-06-10 09:10:24 +00:00
|
|
|
|
tuteng_lose:{
|
|
|
|
|
trigger:{player:'damageEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
popup:false,
|
|
|
|
|
filter:function(event,player){
|
2015-09-22 03:53:35 +00:00
|
|
|
|
var tuteng=['tuteng1','tuteng2','tuteng3','tuteng4',
|
|
|
|
|
'tuteng5','tuteng6','tuteng7','tuteng8'];
|
2015-06-10 09:10:24 +00:00
|
|
|
|
for(var i=0;i<player.skills.length;i++){
|
|
|
|
|
if(tuteng.contains(player.skills[i])) return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
2015-09-22 03:53:35 +00:00
|
|
|
|
var tuteng=['tuteng1','tuteng2','tuteng3','tuteng4',
|
|
|
|
|
'tuteng5','tuteng6','tuteng7','tuteng8'];
|
2015-06-10 09:10:24 +00:00
|
|
|
|
var rand=[];
|
|
|
|
|
for(var i=0;i<player.skills.length;i++){
|
|
|
|
|
if(tuteng.contains(player.skills[i])){
|
|
|
|
|
rand.push(player.skills[i]);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if(rand.length){
|
|
|
|
|
player.removeSkill(rand.randomGet());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tuteng1:{
|
|
|
|
|
mark:'image',
|
2015-09-22 03:53:35 +00:00
|
|
|
|
nopop:true,
|
2015-06-10 09:10:24 +00:00
|
|
|
|
intro:{
|
|
|
|
|
content:'回合结束阶段,你回复一点体力'
|
|
|
|
|
},
|
|
|
|
|
trigger:{player:'phaseEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.hp<player.maxHp;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
player.recover();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tuteng2:{
|
|
|
|
|
mark:'image',
|
2015-09-22 03:53:35 +00:00
|
|
|
|
nopop:true,
|
2015-06-10 09:10:24 +00:00
|
|
|
|
intro:{
|
2015-08-15 09:10:06 +00:00
|
|
|
|
content:'每当你造成一点伤害,你摸一张牌'
|
2015-06-10 09:10:24 +00:00
|
|
|
|
},
|
2015-06-12 05:35:29 +00:00
|
|
|
|
filter:function(event){
|
|
|
|
|
return event.num>0;
|
|
|
|
|
},
|
2015-06-10 09:10:24 +00:00
|
|
|
|
trigger:{source:'damageAfter'},
|
|
|
|
|
forced:true,
|
|
|
|
|
content:function(){
|
2015-08-15 09:10:06 +00:00
|
|
|
|
player.draw(trigger.num);
|
2015-06-10 09:10:24 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tuteng3:{
|
|
|
|
|
mark:'image',
|
2015-09-22 03:53:35 +00:00
|
|
|
|
nopop:true,
|
2015-06-10 09:10:24 +00:00
|
|
|
|
intro:{
|
|
|
|
|
content:'你受到的伤害-1'
|
|
|
|
|
},
|
|
|
|
|
trigger:{player:'damageBegin'},
|
|
|
|
|
forced:true,
|
2015-06-12 05:35:29 +00:00
|
|
|
|
filter:function(event){
|
2015-06-10 09:10:24 +00:00
|
|
|
|
return event.num>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.num--;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
tuteng4:{
|
|
|
|
|
mark:'image',
|
2015-09-22 03:53:35 +00:00
|
|
|
|
nopop:true,
|
2015-06-10 09:10:24 +00:00
|
|
|
|
intro:{
|
2016-10-07 14:00:06 +00:00
|
|
|
|
content:'在你的回合内,你的锦囊牌造成的首次伤害+1'
|
2015-06-10 09:10:24 +00:00
|
|
|
|
},
|
|
|
|
|
trigger:{source:'damageBegin'},
|
|
|
|
|
forced:true,
|
2016-10-07 14:00:06 +00:00
|
|
|
|
usable:1,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return _status.currentPhase==player&&event.card&&get.type(event.card)=='trick'&&event.notLink();
|
2015-06-10 09:10:24 +00:00
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
trigger.num++;
|
|
|
|
|
}
|
|
|
|
|
},
|
2015-09-03 03:49:14 +00:00
|
|
|
|
tuteng5:{
|
|
|
|
|
mark:'image',
|
2015-09-22 03:53:35 +00:00
|
|
|
|
nopop:true,
|
2015-09-03 03:49:14 +00:00
|
|
|
|
intro:{
|
|
|
|
|
content:'回合结束阶段,你摸一张牌'
|
|
|
|
|
},
|
|
|
|
|
trigger:{player:'phaseEnd'},
|
|
|
|
|
forced:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
player.draw();
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tuteng6:{
|
|
|
|
|
mark:'image',
|
2015-09-22 03:53:35 +00:00
|
|
|
|
nopop:true,
|
2015-09-03 03:49:14 +00:00
|
|
|
|
intro:{
|
2016-10-07 14:00:06 +00:00
|
|
|
|
content:'在你的回合内,你的杀造成的首次伤害+1'
|
2015-09-03 03:49:14 +00:00
|
|
|
|
},
|
|
|
|
|
trigger:{source:'damageBegin'},
|
|
|
|
|
forced:true,
|
2016-10-07 14:00:06 +00:00
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return _status.currentPhase==player&&event.card&&event.card.name=='sha'&&event.notLink();
|
2015-09-03 03:49:14 +00:00
|
|
|
|
},
|
2016-10-07 14:00:06 +00:00
|
|
|
|
usable:1,
|
2015-09-03 03:49:14 +00:00
|
|
|
|
content:function(){
|
|
|
|
|
trigger.num++;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
tuteng7:{
|
|
|
|
|
mark:'image',
|
2015-09-22 03:53:35 +00:00
|
|
|
|
nopop:true,
|
2015-09-03 03:49:14 +00:00
|
|
|
|
intro:{
|
|
|
|
|
content:'回合结束阶段,你令一名其他角色回复一点体力'
|
|
|
|
|
},
|
|
|
|
|
trigger:{player:'phaseEnd'},
|
|
|
|
|
direct:true,
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
for(var i=0;i<game.players.length;i++){
|
|
|
|
|
if(game.players[i]!=player&&game.players[i].hp<game.players[i].maxHp){
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
player.chooseTarget('活力图腾:令一名其他角色回复一点体力',function(card,player,target){
|
|
|
|
|
return target!=player&&target.hp<target.maxHp;
|
|
|
|
|
}).ai=function(target){
|
|
|
|
|
return ai.get.recoverEffect(target,player,player);
|
|
|
|
|
};
|
|
|
|
|
'step 1'
|
|
|
|
|
if(result.bool){
|
|
|
|
|
player.logSkill('tuteng7',result.targets[0]);
|
|
|
|
|
result.targets[0].recover();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2015-09-22 03:53:35 +00:00
|
|
|
|
tuteng8:{
|
|
|
|
|
mark:'image',
|
|
|
|
|
nopop:true,
|
|
|
|
|
intro:{
|
|
|
|
|
content:'当计算你与其它角色的距离时,始终-1'
|
|
|
|
|
},
|
|
|
|
|
mod:{
|
|
|
|
|
globalFrom:function(from,to,distance){
|
|
|
|
|
return distance-1;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2015-06-10 09:10:24 +00:00
|
|
|
|
fenliu:{
|
|
|
|
|
enable:'phaseUse',
|
2017-01-22 03:22:02 +00:00
|
|
|
|
prompt:'流失1点体力并摸三张牌',
|
2015-06-10 09:10:24 +00:00
|
|
|
|
usable:1,
|
|
|
|
|
content:function(){
|
|
|
|
|
"step 0"
|
|
|
|
|
player.loseHp(1);
|
|
|
|
|
"step 1"
|
|
|
|
|
player.draw(3);
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
2016-07-29 17:25:53 +00:00
|
|
|
|
order:4,
|
2015-06-10 09:10:24 +00:00
|
|
|
|
result:{
|
|
|
|
|
player:function(player){
|
2017-01-22 03:22:02 +00:00
|
|
|
|
var nh=player.num('h');
|
|
|
|
|
if(nh>=player.hp) return -1;
|
|
|
|
|
if(player.hp<=2){
|
|
|
|
|
if(player.hp==2&&nh==0) return 1;
|
|
|
|
|
return -1;
|
|
|
|
|
}
|
2015-06-10 09:10:24 +00:00
|
|
|
|
return 1;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
effect:{
|
|
|
|
|
target:function(card){
|
|
|
|
|
if(get.tag(card,'damage')||get.tag(card,'loseHp')){
|
|
|
|
|
return 1.5;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
threaten:1.2
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
hongxi:{
|
|
|
|
|
trigger:{global:'dieAfter'},
|
|
|
|
|
filter:function(event,player){
|
|
|
|
|
return player.hp<player.maxHp;
|
|
|
|
|
},
|
|
|
|
|
forced:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
player.recover(player.maxHp-player.hp);
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
threaten:1.2
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
2016-05-29 03:20:57 +00:00
|
|
|
|
cardType:{
|
|
|
|
|
hsmengjing:0.5,
|
|
|
|
|
hsbaowu:0.5,
|
|
|
|
|
hsdusu:0.5,
|
|
|
|
|
hsshenqi:0.5,
|
2017-01-15 16:58:11 +00:00
|
|
|
|
hsyaoshui:0.5,
|
|
|
|
|
hsqingyu:0.5,
|
2016-05-29 03:20:57 +00:00
|
|
|
|
},
|
2015-06-10 09:10:24 +00:00
|
|
|
|
card:{
|
2017-01-15 16:58:11 +00:00
|
|
|
|
hsqingyu_feibiao:{
|
|
|
|
|
type:'hsqingyu',
|
|
|
|
|
fullimage:true,
|
|
|
|
|
vanish:true,
|
|
|
|
|
enable:true,
|
|
|
|
|
derivation:'hs_aya',
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target.num('he')>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
var cards=[];
|
|
|
|
|
var hs=target.get('h');
|
|
|
|
|
var es=target.get('e');
|
|
|
|
|
if(hs.length) cards.push(hs.randomGet());
|
|
|
|
|
if(es.length) cards.push(es.randomGet());
|
|
|
|
|
target.discard(cards);
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:8,
|
|
|
|
|
useful:3,
|
|
|
|
|
value:6,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
var num=0;
|
|
|
|
|
if(target.num('h')) num--;
|
|
|
|
|
if(target.num('e')) num--;
|
|
|
|
|
return num;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
hsqingyu_zhanfang:{
|
|
|
|
|
type:'hsqingyu',
|
|
|
|
|
fullimage:true,
|
|
|
|
|
vanish:true,
|
|
|
|
|
enable:true,
|
|
|
|
|
derivation:'hs_aya',
|
|
|
|
|
filterTarget:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
target.gainMaxHp();
|
|
|
|
|
target.draw();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:5,
|
|
|
|
|
useful:3,
|
|
|
|
|
value:4,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
if(target.hp==target.maxHp){
|
|
|
|
|
if(target.maxHp<3) return 2;
|
|
|
|
|
if(target.maxHp==3) return 1.5;
|
|
|
|
|
return 1.2;
|
|
|
|
|
}
|
|
|
|
|
return 1;
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
hsqingyu_hufu:{
|
|
|
|
|
type:'hsqingyu',
|
|
|
|
|
fullimage:true,
|
|
|
|
|
vanish:true,
|
|
|
|
|
enable:true,
|
|
|
|
|
derivation:'hs_aya',
|
|
|
|
|
filterTarget:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
target.changeHujia();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:5,
|
|
|
|
|
useful:3,
|
|
|
|
|
value:6,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
return 2/Math.max(1,Math.sqrt(target.hp));
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
hsqingyu_shandian:{
|
|
|
|
|
type:'hsqingyu',
|
|
|
|
|
fullimage:true,
|
|
|
|
|
vanish:true,
|
|
|
|
|
enable:true,
|
|
|
|
|
derivation:'hs_aya',
|
|
|
|
|
filterTarget:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
target.damage('thunder');
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:5,
|
|
|
|
|
result:{
|
|
|
|
|
target:-1,
|
|
|
|
|
},
|
|
|
|
|
useful:5,
|
|
|
|
|
value:8,
|
|
|
|
|
tag:{
|
|
|
|
|
damage:1,
|
|
|
|
|
thunderDamage:1,
|
|
|
|
|
natureDamage:1,
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
hsqingyu_zhao:{
|
|
|
|
|
type:'equip',
|
|
|
|
|
subtype:'equip1',
|
|
|
|
|
distance:{attackFrom:-1},
|
|
|
|
|
fullimage:true,
|
|
|
|
|
vanish:true,
|
|
|
|
|
derivation:'hs_aya',
|
|
|
|
|
onEquip:function(){
|
|
|
|
|
player.draw();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:9,
|
|
|
|
|
useful:5,
|
|
|
|
|
value:4
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-05-29 03:20:57 +00:00
|
|
|
|
hsdusu_xueji:{
|
|
|
|
|
type:'hsdusu',
|
|
|
|
|
fullimage:true,
|
|
|
|
|
vanish:true,
|
|
|
|
|
enable:true,
|
|
|
|
|
derivation:'hs_xialikeer',
|
2016-05-29 05:34:06 +00:00
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target.num('e')>0;
|
|
|
|
|
},
|
2016-05-29 03:20:57 +00:00
|
|
|
|
content:function(){
|
2017-01-15 16:58:11 +00:00
|
|
|
|
target.discard(target.get('e').randomGets(2));
|
2016-05-29 03:20:57 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:5,
|
|
|
|
|
result:{
|
2016-05-29 05:34:06 +00:00
|
|
|
|
target:function(player,target){
|
|
|
|
|
if(target.hasSkillTag('noe')) return 0;
|
|
|
|
|
if(target.num('e')>1) return -1.5;
|
|
|
|
|
return -1;
|
|
|
|
|
},
|
2016-05-29 03:20:57 +00:00
|
|
|
|
},
|
2016-05-29 05:34:06 +00:00
|
|
|
|
value:5,
|
2016-05-29 03:20:57 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
hsdusu_kuyecao:{
|
|
|
|
|
type:'hsdusu',
|
|
|
|
|
fullimage:true,
|
|
|
|
|
vanish:true,
|
|
|
|
|
enable:true,
|
|
|
|
|
derivation:'hs_xialikeer',
|
2016-05-29 05:34:06 +00:00
|
|
|
|
filterTarget:function(card,player,target){
|
2017-01-23 05:31:32 +00:00
|
|
|
|
return !target.hasSkill('qianxing');
|
2016-05-29 05:34:06 +00:00
|
|
|
|
},
|
2016-05-29 03:20:57 +00:00
|
|
|
|
content:function(){
|
2017-01-23 05:31:32 +00:00
|
|
|
|
target.addTempSkill('qianxing',{player:'phaseBegin'});
|
2016-05-29 03:20:57 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
2016-05-29 05:34:06 +00:00
|
|
|
|
order:2,
|
2016-05-29 03:20:57 +00:00
|
|
|
|
result:{
|
2016-05-29 05:34:06 +00:00
|
|
|
|
target:function(player,target){
|
|
|
|
|
if(player!=target&&get.distance(player,target,'absolute')<=1) return 0;
|
|
|
|
|
var num=1;
|
|
|
|
|
if(target==player){
|
|
|
|
|
num=1.5;
|
|
|
|
|
}
|
|
|
|
|
if(target.hp==1) return 2*num;
|
|
|
|
|
if(target.hp==2&&target.num('h')<=2) return 1.2*num;
|
|
|
|
|
return num;
|
|
|
|
|
}
|
2016-05-29 03:20:57 +00:00
|
|
|
|
},
|
2016-05-29 05:34:06 +00:00
|
|
|
|
value:5,
|
2016-05-29 03:20:57 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
hsdusu_huangxuecao:{
|
|
|
|
|
type:'hsdusu',
|
|
|
|
|
fullimage:true,
|
|
|
|
|
vanish:true,
|
|
|
|
|
enable:true,
|
|
|
|
|
derivation:'hs_xialikeer',
|
2016-05-29 05:34:06 +00:00
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target==player;
|
|
|
|
|
},
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
modTarget:true,
|
2016-05-29 03:20:57 +00:00
|
|
|
|
content:function(){
|
2016-05-29 05:34:06 +00:00
|
|
|
|
target.draw(2);
|
2016-05-29 03:20:57 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
2016-05-29 05:34:06 +00:00
|
|
|
|
order:9,
|
2016-05-29 03:20:57 +00:00
|
|
|
|
result:{
|
2016-05-29 05:34:06 +00:00
|
|
|
|
target:1,
|
2016-05-29 03:20:57 +00:00
|
|
|
|
},
|
2016-05-29 05:34:06 +00:00
|
|
|
|
value:10,
|
2016-05-29 03:20:57 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
hsdusu_huoyanhua:{
|
|
|
|
|
type:'hsdusu',
|
|
|
|
|
fullimage:true,
|
|
|
|
|
vanish:true,
|
|
|
|
|
enable:true,
|
|
|
|
|
derivation:'hs_xialikeer',
|
2016-05-29 05:34:06 +00:00
|
|
|
|
range:{attack:1},
|
2016-05-29 03:20:57 +00:00
|
|
|
|
filterTarget:true,
|
|
|
|
|
content:function(){
|
2016-05-29 05:34:06 +00:00
|
|
|
|
target.damage('fire');
|
2016-05-29 03:20:57 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:5,
|
|
|
|
|
result:{
|
|
|
|
|
target:-1,
|
|
|
|
|
},
|
2016-05-29 05:34:06 +00:00
|
|
|
|
useful:5,
|
|
|
|
|
value:8,
|
|
|
|
|
tag:{
|
|
|
|
|
damage:1,
|
|
|
|
|
fireDamage:1,
|
|
|
|
|
natureDamage:1,
|
|
|
|
|
}
|
2016-05-29 03:20:57 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
hsdusu_shinancao:{
|
|
|
|
|
type:'hsdusu',
|
|
|
|
|
fullimage:true,
|
|
|
|
|
vanish:true,
|
|
|
|
|
enable:true,
|
|
|
|
|
derivation:'hs_xialikeer',
|
2016-05-29 05:34:06 +00:00
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return !target.hasSkill('hsdusu_shinancao');
|
|
|
|
|
},
|
2016-05-29 03:20:57 +00:00
|
|
|
|
content:function(){
|
2016-05-29 05:34:06 +00:00
|
|
|
|
target.addSkill('hsdusu_shinancao');
|
2016-05-29 03:20:57 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
2016-05-29 05:34:06 +00:00
|
|
|
|
order:7,
|
2016-05-29 03:20:57 +00:00
|
|
|
|
result:{
|
2016-05-29 05:34:06 +00:00
|
|
|
|
target:function(player,target){
|
|
|
|
|
if(target.hp>1){
|
|
|
|
|
if(target.num('h')>2) return 1;
|
|
|
|
|
return 0.5;
|
|
|
|
|
}
|
|
|
|
|
return 0.2;
|
|
|
|
|
},
|
2016-05-29 03:20:57 +00:00
|
|
|
|
},
|
2016-05-29 05:34:06 +00:00
|
|
|
|
value:5,
|
2016-05-29 03:20:57 +00:00
|
|
|
|
}
|
|
|
|
|
},
|
2016-03-19 10:39:09 +00:00
|
|
|
|
hsbaowu_cangbaotu:{
|
|
|
|
|
type:'hsbaowu',
|
2016-05-28 23:59:49 +00:00
|
|
|
|
fullimage:true,
|
2016-03-19 10:39:09 +00:00
|
|
|
|
vanish:true,
|
|
|
|
|
enable:true,
|
|
|
|
|
derivation:'hs_yelise',
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target==player;
|
|
|
|
|
},
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
content:function(){
|
|
|
|
|
target.addSkill('hsbaowu_cangbaotu');
|
|
|
|
|
target.draw();
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:10,
|
|
|
|
|
result:{
|
|
|
|
|
player:10
|
|
|
|
|
},
|
|
|
|
|
useful:10,
|
|
|
|
|
value:10,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
hsbaowu_huangjinyuanhou:{
|
|
|
|
|
type:'hsbaowu',
|
2016-05-28 23:59:49 +00:00
|
|
|
|
fullimage:true,
|
2016-03-19 10:39:09 +00:00
|
|
|
|
vanish:true,
|
|
|
|
|
enable:true,
|
|
|
|
|
derivation:'hs_yelise',
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target==player;
|
|
|
|
|
},
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
content:function(){
|
2016-08-07 09:38:27 +00:00
|
|
|
|
player.recover();
|
2016-03-19 10:39:09 +00:00
|
|
|
|
var hs=target.get('h');
|
|
|
|
|
target.discard(hs);
|
|
|
|
|
var cs=[];
|
|
|
|
|
for(var i=0;i<hs.length;i++){
|
|
|
|
|
cs.push(game.createCard('wuzhong'));
|
|
|
|
|
}
|
|
|
|
|
target.gain(cs,'gain2');
|
|
|
|
|
target.storage.hsbaowu_huangjinyuanhou=cards[0];
|
|
|
|
|
target.addSkill('hsbaowu_huangjinyuanhou');
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:10,
|
|
|
|
|
result:{
|
|
|
|
|
player:function(player){
|
|
|
|
|
if(player.num('h')>1) return 1;
|
|
|
|
|
if(player.hp==1) return 1;
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
useful:10,
|
|
|
|
|
value:10,
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-03-18 09:59:45 +00:00
|
|
|
|
hsshenqi_nengliangzhiguang:{
|
|
|
|
|
type:'hsshenqi',
|
2016-05-28 23:59:49 +00:00
|
|
|
|
fullimage:true,
|
2016-03-19 10:39:09 +00:00
|
|
|
|
vanish:true,
|
2016-06-17 15:44:19 +00:00
|
|
|
|
enable:function(card,player){
|
2016-06-20 16:09:42 +00:00
|
|
|
|
return !player.isTurnedOver();
|
2016-06-17 15:44:19 +00:00
|
|
|
|
},
|
2016-03-19 10:39:09 +00:00
|
|
|
|
derivation:'hs_lafamu',
|
2016-03-18 09:59:45 +00:00
|
|
|
|
filterTarget:true,
|
|
|
|
|
content:function(){
|
2016-03-19 10:39:09 +00:00
|
|
|
|
target.gainMaxHp();
|
|
|
|
|
target.recover();
|
|
|
|
|
target.draw(4);
|
2016-03-18 09:59:45 +00:00
|
|
|
|
},
|
2016-06-17 15:44:19 +00:00
|
|
|
|
contentAfter:function(){
|
|
|
|
|
if(!player.isTurnedOver()){
|
|
|
|
|
player.turnOver();
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-03-18 09:59:45 +00:00
|
|
|
|
ai:{
|
|
|
|
|
order:5,
|
|
|
|
|
result:{
|
2016-03-19 10:39:09 +00:00
|
|
|
|
target:function(player,target){
|
|
|
|
|
if(target.hp<=1) return 2;
|
|
|
|
|
if(target.num('h')<target.hp||target.hp==2) return 1.5;
|
|
|
|
|
return 1;
|
|
|
|
|
}
|
2016-03-18 09:59:45 +00:00
|
|
|
|
},
|
|
|
|
|
useful:5,
|
|
|
|
|
value:10,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
hsshenqi_kongbusangzhong:{
|
|
|
|
|
type:'hsshenqi',
|
2016-05-28 23:59:49 +00:00
|
|
|
|
fullimage:true,
|
2016-03-19 10:39:09 +00:00
|
|
|
|
vanish:true,
|
2016-06-17 15:44:19 +00:00
|
|
|
|
enable:function(card,player){
|
2016-06-20 16:09:42 +00:00
|
|
|
|
return !player.isTurnedOver();
|
2016-06-17 15:44:19 +00:00
|
|
|
|
},
|
2016-03-19 10:39:09 +00:00
|
|
|
|
derivation:'hs_lafamu',
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target!=player;
|
|
|
|
|
},
|
|
|
|
|
selectTarget:-1,
|
2016-03-18 09:59:45 +00:00
|
|
|
|
content:function(){
|
2016-03-19 10:39:09 +00:00
|
|
|
|
target.damage(Math.ceil(Math.random()*2));
|
2016-03-18 09:59:45 +00:00
|
|
|
|
},
|
2016-06-17 15:44:19 +00:00
|
|
|
|
contentAfter:function(){
|
|
|
|
|
if(!player.isTurnedOver()){
|
|
|
|
|
player.turnOver();
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-03-18 09:59:45 +00:00
|
|
|
|
ai:{
|
2016-03-19 10:39:09 +00:00
|
|
|
|
order:9,
|
2016-03-18 09:59:45 +00:00
|
|
|
|
result:{
|
|
|
|
|
target:-2
|
|
|
|
|
},
|
|
|
|
|
tag:{
|
2016-03-19 10:39:09 +00:00
|
|
|
|
damage:2,
|
|
|
|
|
multitarget:1,
|
|
|
|
|
multineg:1,
|
2016-03-18 09:59:45 +00:00
|
|
|
|
},
|
|
|
|
|
useful:5,
|
|
|
|
|
value:10,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
hsshenqi_morijingxiang:{
|
|
|
|
|
type:'hsshenqi',
|
2016-05-28 23:59:49 +00:00
|
|
|
|
fullimage:true,
|
2016-03-19 10:39:09 +00:00
|
|
|
|
vanish:true,
|
2016-06-17 15:44:19 +00:00
|
|
|
|
enable:function(card,player){
|
2016-06-20 16:09:42 +00:00
|
|
|
|
return !player.isTurnedOver();
|
2016-06-17 15:44:19 +00:00
|
|
|
|
},
|
2016-03-19 10:39:09 +00:00
|
|
|
|
derivation:'hs_lafamu',
|
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target!=player&&target.num('hej')>0;
|
|
|
|
|
},
|
|
|
|
|
selectTarget:-1,
|
2016-03-18 09:59:45 +00:00
|
|
|
|
content:function(){
|
2016-03-19 10:39:09 +00:00
|
|
|
|
if(target.num('hej')) player.gainPlayerCard(target,'hej',true,Math.ceil(Math.random()*2));
|
2016-03-18 09:59:45 +00:00
|
|
|
|
},
|
2016-06-17 15:44:19 +00:00
|
|
|
|
contentAfter:function(){
|
|
|
|
|
if(!player.isTurnedOver()){
|
|
|
|
|
player.turnOver();
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-03-18 09:59:45 +00:00
|
|
|
|
ai:{
|
2016-03-19 10:39:09 +00:00
|
|
|
|
order:9.5,
|
2016-03-18 09:59:45 +00:00
|
|
|
|
result:{
|
2016-03-19 10:39:09 +00:00
|
|
|
|
player:1
|
2016-03-18 09:59:45 +00:00
|
|
|
|
},
|
|
|
|
|
tag:{
|
2016-03-19 10:39:09 +00:00
|
|
|
|
multitarget:1,
|
|
|
|
|
multineg:1,
|
2016-03-18 09:59:45 +00:00
|
|
|
|
},
|
|
|
|
|
useful:5,
|
|
|
|
|
value:10,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
hsmengjing_feicuiyoulong:{
|
|
|
|
|
type:'hsmengjing',
|
2016-05-28 23:59:49 +00:00
|
|
|
|
fullimage:true,
|
2016-03-19 10:39:09 +00:00
|
|
|
|
vanish:true,
|
2015-11-21 05:30:26 +00:00
|
|
|
|
enable:true,
|
2016-03-19 10:39:09 +00:00
|
|
|
|
derivation:'hs_ysera',
|
2015-11-21 05:30:26 +00:00
|
|
|
|
filterTarget:true,
|
|
|
|
|
content:function(){
|
2017-01-15 06:58:39 +00:00
|
|
|
|
target.damage();
|
2015-11-21 05:30:26 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:5,
|
|
|
|
|
result:{
|
2017-01-15 06:58:39 +00:00
|
|
|
|
target:-1
|
2015-11-21 05:30:26 +00:00
|
|
|
|
},
|
|
|
|
|
tag:{
|
2017-01-15 06:58:39 +00:00
|
|
|
|
damage:1
|
2015-11-21 05:30:26 +00:00
|
|
|
|
},
|
|
|
|
|
useful:5,
|
|
|
|
|
value:10,
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-03-18 09:59:45 +00:00
|
|
|
|
hsmengjing_suxing:{
|
|
|
|
|
type:'hsmengjing',
|
2016-05-28 23:59:49 +00:00
|
|
|
|
fullimage:true,
|
2016-03-19 10:39:09 +00:00
|
|
|
|
vanish:true,
|
2015-11-21 05:30:26 +00:00
|
|
|
|
enable:true,
|
2016-03-19 10:39:09 +00:00
|
|
|
|
derivation:'hs_ysera',
|
2015-11-21 05:30:26 +00:00
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return player!=target;
|
|
|
|
|
},
|
|
|
|
|
selectTarget:-1,
|
|
|
|
|
content:function(){
|
|
|
|
|
target.loseHp();
|
|
|
|
|
var he=target.get('he');
|
|
|
|
|
if(he.length){
|
|
|
|
|
target.discard(he.randomGets(2));
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
result:{
|
|
|
|
|
target:-1,
|
|
|
|
|
},
|
|
|
|
|
order:6,
|
|
|
|
|
useful:5,
|
|
|
|
|
value:10,
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-03-18 09:59:45 +00:00
|
|
|
|
hsmengjing_mengye:{
|
|
|
|
|
type:'hsmengjing',
|
2016-05-28 23:59:49 +00:00
|
|
|
|
fullimage:true,
|
2016-03-19 10:39:09 +00:00
|
|
|
|
vanish:true,
|
2015-11-21 05:30:26 +00:00
|
|
|
|
enable:true,
|
2016-03-19 10:39:09 +00:00
|
|
|
|
derivation:'hs_ysera',
|
2015-11-21 05:30:26 +00:00
|
|
|
|
filterTarget:true,
|
|
|
|
|
content:function(){
|
|
|
|
|
target.draw();
|
2016-03-18 09:59:45 +00:00
|
|
|
|
target.addSkill('hsmengjing_mengye');
|
2015-11-21 05:30:26 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:1,
|
|
|
|
|
useful:5,
|
|
|
|
|
value:10,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
2016-08-13 07:28:11 +00:00
|
|
|
|
if(target.hasSkill('hsmengjing_mengye')) return 0.5;
|
2015-11-21 05:30:26 +00:00
|
|
|
|
return -target.num('he');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-03-18 09:59:45 +00:00
|
|
|
|
hsmengjing_mengjing:{
|
|
|
|
|
type:'hsmengjing',
|
2016-05-28 23:59:49 +00:00
|
|
|
|
fullimage:true,
|
2016-03-19 10:39:09 +00:00
|
|
|
|
vanish:true,
|
2015-11-21 05:30:26 +00:00
|
|
|
|
enable:true,
|
2016-03-19 10:39:09 +00:00
|
|
|
|
derivation:'hs_ysera',
|
2015-11-21 05:30:26 +00:00
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return !target.num('j','lebu')||target.num('e')>0;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
|
|
|
|
'step 0'
|
|
|
|
|
var es=target.get('e');
|
|
|
|
|
if(es.length){
|
|
|
|
|
target.gain(es,'gain2');
|
|
|
|
|
}
|
|
|
|
|
'step 1'
|
|
|
|
|
if(!target.num('j','lebu')){
|
|
|
|
|
target.addJudge(game.createCard('lebu'));
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:2,
|
|
|
|
|
useful:5,
|
|
|
|
|
value:10,
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
|
|
|
|
var num=target.hp-target.num('he')-2;
|
|
|
|
|
if(num>-1) return -1;
|
|
|
|
|
if(target.hp<3) num--;
|
|
|
|
|
if(target.hp<2) num--;
|
|
|
|
|
if(target.hp<1) num--;
|
|
|
|
|
return num;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2016-03-18 09:59:45 +00:00
|
|
|
|
hsmengjing_huanxiaojiemei:{
|
|
|
|
|
type:'hsmengjing',
|
2016-05-28 23:59:49 +00:00
|
|
|
|
fullimage:true,
|
2016-03-19 10:39:09 +00:00
|
|
|
|
vanish:true,
|
2015-11-21 05:30:26 +00:00
|
|
|
|
enable:true,
|
2016-03-19 10:39:09 +00:00
|
|
|
|
derivation:'hs_ysera',
|
2015-11-21 05:30:26 +00:00
|
|
|
|
filterTarget:function(card,player,target){
|
|
|
|
|
return target.hp<target.maxHp;
|
|
|
|
|
},
|
|
|
|
|
content:function(){
|
2017-01-15 06:58:39 +00:00
|
|
|
|
target.recover();
|
2015-11-21 05:30:26 +00:00
|
|
|
|
},
|
|
|
|
|
ai:{
|
|
|
|
|
order:6,
|
|
|
|
|
value:10,
|
|
|
|
|
useful:[7,4],
|
|
|
|
|
result:{
|
|
|
|
|
target:function(player,target){
|
2017-01-15 06:58:39 +00:00
|
|
|
|
return ai.get.recoverEffect(target,player,target);
|
2015-11-21 05:30:26 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
2015-06-10 09:10:24 +00:00
|
|
|
|
tuteng1:{
|
2015-09-22 03:53:35 +00:00
|
|
|
|
noname:true,
|
2016-05-28 23:59:49 +00:00
|
|
|
|
fullimage:true,
|
2016-05-29 02:40:12 +00:00
|
|
|
|
type:'hstuteng',
|
|
|
|
|
// derivation:'hs_sthrall'
|
2015-06-10 09:10:24 +00:00
|
|
|
|
},
|
|
|
|
|
tuteng2:{
|
2015-09-22 03:53:35 +00:00
|
|
|
|
noname:true,
|
2016-05-28 23:59:49 +00:00
|
|
|
|
fullimage:true,
|
2016-05-29 02:40:12 +00:00
|
|
|
|
type:'hstuteng',
|
|
|
|
|
// derivation:'hs_sthrall'
|
2015-06-10 09:10:24 +00:00
|
|
|
|
},
|
|
|
|
|
tuteng3:{
|
2015-09-22 03:53:35 +00:00
|
|
|
|
noname:true,
|
2016-05-28 23:59:49 +00:00
|
|
|
|
fullimage:true,
|
2016-05-29 02:40:12 +00:00
|
|
|
|
type:'hstuteng',
|
|
|
|
|
// derivation:'hs_sthrall'
|
2015-06-10 09:10:24 +00:00
|
|
|
|
},
|
|
|
|
|
tuteng4:{
|
2015-09-22 03:53:35 +00:00
|
|
|
|
noname:true,
|
2016-05-28 23:59:49 +00:00
|
|
|
|
fullimage:true,
|
2016-05-29 02:40:12 +00:00
|
|
|
|
type:'hstuteng',
|
|
|
|
|
// derivation:'hs_sthrall'
|
2015-09-03 03:49:14 +00:00
|
|
|
|
},
|
|
|
|
|
tuteng5:{
|
2015-09-22 03:53:35 +00:00
|
|
|
|
noname:true,
|
2016-05-28 23:59:49 +00:00
|
|
|
|
fullimage:true,
|
2016-05-29 02:40:12 +00:00
|
|
|
|
type:'hstuteng',
|
|
|
|
|
// derivation:'hs_sthrall'
|
2015-09-03 03:49:14 +00:00
|
|
|
|
},
|
|
|
|
|
tuteng6:{
|
2015-09-22 03:53:35 +00:00
|
|
|
|
noname:true,
|
2016-05-28 23:59:49 +00:00
|
|
|
|
fullimage:true,
|
2016-05-29 02:40:12 +00:00
|
|
|
|
type:'hstuteng',
|
|
|
|
|
// derivation:'hs_sthrall'
|
2015-09-03 03:49:14 +00:00
|
|
|
|
},
|
|
|
|
|
tuteng7:{
|
2015-09-22 03:53:35 +00:00
|
|
|
|
noname:true,
|
2016-05-28 23:59:49 +00:00
|
|
|
|
fullimage:true,
|
2016-05-29 02:40:12 +00:00
|
|
|
|
type:'hstuteng',
|
|
|
|
|
// derivation:'hs_sthrall'
|
2015-09-22 03:53:35 +00:00
|
|
|
|
},
|
|
|
|
|
tuteng8:{
|
|
|
|
|
noname:true,
|
2016-05-28 23:59:49 +00:00
|
|
|
|
fullimage:true,
|
2016-05-29 02:40:12 +00:00
|
|
|
|
type:'hstuteng',
|
|
|
|
|
// derivation:'hs_sthrall'
|
2015-09-03 03:49:14 +00:00
|
|
|
|
},
|
2015-06-10 09:10:24 +00:00
|
|
|
|
},
|
|
|
|
|
translate:{
|
2015-06-27 16:21:25 +00:00
|
|
|
|
hs_alleria:'奥蕾莉亚',
|
|
|
|
|
hs_magni:'麦格尼',
|
2015-06-19 15:31:36 +00:00
|
|
|
|
hs_medivh:'麦迪文',
|
2015-06-10 09:10:24 +00:00
|
|
|
|
hs_jaina:'吉安娜',
|
2015-09-03 03:49:14 +00:00
|
|
|
|
hs_lrexxar:'雷克萨',
|
|
|
|
|
hs_wuther:'乌瑟尔',
|
|
|
|
|
hs_jgarrosh:'加尔鲁什',
|
2015-06-10 09:10:24 +00:00
|
|
|
|
hs_malfurion:'玛法里奥',
|
|
|
|
|
hs_guldan:'古尔丹',
|
|
|
|
|
hs_anduin:'安度因',
|
2015-09-03 03:49:14 +00:00
|
|
|
|
hs_sthrall:'萨尔',
|
2015-06-10 09:10:24 +00:00
|
|
|
|
hs_waleera:'瓦莉拉',
|
2016-03-22 06:45:57 +00:00
|
|
|
|
hs_liadrin:'莉亚德琳',
|
2016-07-16 02:11:40 +00:00
|
|
|
|
hs_morgl:'摩戈尔',
|
2015-06-10 09:10:24 +00:00
|
|
|
|
|
2015-08-15 09:10:06 +00:00
|
|
|
|
hs_neptulon:'耐普图隆',
|
2015-09-03 03:49:14 +00:00
|
|
|
|
hs_wvelen:'维纶',
|
2015-08-15 09:10:06 +00:00
|
|
|
|
hs_antonidas:'安东尼达斯',
|
2015-09-03 03:49:14 +00:00
|
|
|
|
hs_alakir:'奥拉基尔',
|
|
|
|
|
hs_zhouzhuo:'周卓',
|
|
|
|
|
hs_yngvar:'伊戈瓦尔',
|
|
|
|
|
hs_bchillmaw:'冰喉',
|
|
|
|
|
hs_malorne:'玛洛恩',
|
2015-11-18 03:39:14 +00:00
|
|
|
|
hs_xsylvanas:'希尔瓦娜斯',
|
|
|
|
|
hs_siwangzhiyi:'死亡之翼',
|
|
|
|
|
hs_malygos:'玛里苟斯',
|
|
|
|
|
hs_xuefashi:'血法师',
|
2015-11-21 05:30:26 +00:00
|
|
|
|
hs_ysera:'伊瑟拉',
|
2015-12-20 04:34:31 +00:00
|
|
|
|
hs_alextrasza:'阿莱克斯塔',
|
2015-12-30 04:00:49 +00:00
|
|
|
|
hs_trueheart:'图哈特',
|
2016-03-04 13:31:26 +00:00
|
|
|
|
hs_nozdormu:'诺兹多姆',
|
2016-03-17 07:30:23 +00:00
|
|
|
|
hs_loatheb:'洛欧塞布',
|
|
|
|
|
hs_jiaziruila:'加兹瑞拉',
|
|
|
|
|
hs_sainaliusi:'塞纳留斯',
|
|
|
|
|
hs_bolvar:'伯瓦尔',
|
|
|
|
|
hs_lrhonin:'罗宁',
|
2016-03-18 16:34:46 +00:00
|
|
|
|
hs_fuding:'弗丁',
|
2016-05-29 03:22:37 +00:00
|
|
|
|
hs_aedwin:'艾德温',
|
2016-03-19 10:39:09 +00:00
|
|
|
|
hs_lafamu:'拉法姆',
|
|
|
|
|
hs_yelise:'伊莉斯',
|
2016-03-22 06:45:57 +00:00
|
|
|
|
hs_lreno:'雷诺',
|
|
|
|
|
hs_finley:'芬利',
|
|
|
|
|
hs_brann:'布莱恩',
|
2016-05-28 14:54:09 +00:00
|
|
|
|
hs_kcthun:'克苏恩',
|
|
|
|
|
hs_anomalus:'阿诺玛鲁斯',
|
|
|
|
|
hs_blingtron:'布林顿',
|
2016-06-20 12:02:56 +00:00
|
|
|
|
hs_fandral:'范达尔',
|
2016-06-21 07:47:20 +00:00
|
|
|
|
hs_hallazeal:'海纳泽尔',
|
2016-06-20 12:02:56 +00:00
|
|
|
|
hs_nzoth:'恩佐斯',
|
|
|
|
|
hs_walian:'瓦里安',
|
|
|
|
|
hs_pengpeng:'砰砰博士',
|
2017-01-15 16:58:11 +00:00
|
|
|
|
hs_aya:'艾雅',
|
2015-08-15 09:10:06 +00:00
|
|
|
|
|
|
|
|
|
hs_ronghejuren:'熔核巨人',
|
2015-12-20 04:34:31 +00:00
|
|
|
|
hs_shanlingjuren:'山岭巨人',
|
2015-08-15 09:10:06 +00:00
|
|
|
|
hs_mijiaojisi:'秘教祭司',
|
|
|
|
|
hs_huzhixiannv:'湖之仙女',
|
2015-09-03 03:49:14 +00:00
|
|
|
|
hs_tgolem:'图腾魔像',
|
|
|
|
|
hs_totemic:'图腾师',
|
2015-11-18 03:39:14 +00:00
|
|
|
|
hs_bilanyoulong:'碧蓝幼龙',
|
2015-12-20 04:34:31 +00:00
|
|
|
|
hs_zhishigushu:'知识古树',
|
|
|
|
|
hs_zhanzhenggushu:'战争古树',
|
|
|
|
|
hs_jinglinglong:'精灵龙',
|
|
|
|
|
hs_sapphiron:'萨菲隆',
|
2016-03-04 13:31:26 +00:00
|
|
|
|
hs_xuanzhuanjijia:'旋转机甲',
|
|
|
|
|
hs_ruanniguai:'软泥怪',
|
|
|
|
|
hs_kchromaggus:'克洛玛古斯',
|
2016-03-14 08:58:27 +00:00
|
|
|
|
hs_hudunren:'护盾人',
|
|
|
|
|
hs_nate:'纳特',
|
2016-03-18 09:59:45 +00:00
|
|
|
|
hs_shifazhe:'嗜法者',
|
2016-05-29 02:40:12 +00:00
|
|
|
|
hs_yogg:'尤格萨隆',
|
2016-05-29 03:20:57 +00:00
|
|
|
|
hs_xialikeer:'夏克里尔',
|
2016-12-01 04:43:48 +00:00
|
|
|
|
hs_wolazi:'沃拉兹',
|
|
|
|
|
hs_tanghangu:'唐·汉古',
|
|
|
|
|
hs_barnes:'巴内斯',
|
|
|
|
|
hs_xiangyaqishi:'象牙骑士',
|
|
|
|
|
hs_nuogefu:'诺格弗',
|
|
|
|
|
hs_kazhakusi:'卡扎库斯',
|
|
|
|
|
hs_lazi:'拉兹',
|
|
|
|
|
hs_shaku:'沙库尔',
|
|
|
|
|
hs_laxiao:'拉希奥',
|
|
|
|
|
hs_yashaji:'亚煞极',
|
2017-01-15 16:58:11 +00:00
|
|
|
|
hs_khadgar:'卡德加',
|
|
|
|
|
hs_tyrande:'泰兰德',
|
|
|
|
|
hs_fenjie:'芬杰',
|
2016-06-20 12:02:56 +00:00
|
|
|
|
|
2017-01-28 13:55:23 +00:00
|
|
|
|
yuelu:'月印',
|
|
|
|
|
yuelu_info:'出牌阶段限一次,你可以弃置一张红桃牌令一名角色回复一点体力并获得一点护甲',
|
|
|
|
|
xingluo:'星落',
|
|
|
|
|
xingluo_info:'星落',
|
2017-01-18 08:58:53 +00:00
|
|
|
|
yushou:'御兽',
|
|
|
|
|
yushou_info:'出牌阶段,你可以弃置一张牌并召唤一个随机的野兽宠物,效果持续到你的下一回合开始',
|
|
|
|
|
yushou_misha:'米莎',
|
|
|
|
|
yushou_misha_info:'你每回合受到的首次伤害-1',
|
|
|
|
|
yushou_huofu:'霍弗',
|
|
|
|
|
yushou_huofu_info:'你可以将一张黑色牌当作决斗使用',
|
|
|
|
|
yushou_leiouke:'雷欧克',
|
|
|
|
|
yushou_leiouke_info:'你每回合造成的首次伤害+1',
|
2017-01-15 16:58:11 +00:00
|
|
|
|
hsqingyu_hufu:'青玉护符',
|
|
|
|
|
hsqingyu_hufu_info:'令一名角色获得一点护甲',
|
|
|
|
|
hsqingyu_zhao:'青玉之爪',
|
|
|
|
|
hsqingyu_zhao_info:'当你装备此装备时,摸一张牌',
|
|
|
|
|
hsqingyu_feibiao:'青玉飞镖',
|
|
|
|
|
hsqingyu_feibiao_info:'弃置一名角色的一张随机手牌和一张随机装备牌',
|
|
|
|
|
hsqingyu_shandian:'青玉闪电',
|
|
|
|
|
hsqingyu_shandian_info:'对一名角色造成一点雷电伤害',
|
|
|
|
|
hsqingyu_zhanfang:'青玉绽放',
|
|
|
|
|
hsqingyu_zhanfang_info:'令一名角色增加一点体力上限并摸一张牌',
|
|
|
|
|
ayuling:'玉灵',
|
2017-01-18 03:00:22 +00:00
|
|
|
|
ayuling_info:'每当你受到一次伤害,你可以获得一张随机青玉牌',
|
|
|
|
|
qingzun:'青樽',
|
|
|
|
|
qingzun_info:'本局对战中,每当你使用一张青玉牌,你的手牌上限+1;当你累计使用两张青玉牌后,你可以于回合开始阶段摸一张牌;当你累计使用六张青玉牌后,你可以于回合结束阶段摸一张牌',
|
2016-12-05 02:45:27 +00:00
|
|
|
|
lianjin:'炼金',
|
2017-01-16 07:48:07 +00:00
|
|
|
|
lianjin_info:'出牌阶段限两次,你可以将一张手牌永久转化为一张由三张随机牌组成的药水',
|
2016-12-05 02:45:27 +00:00
|
|
|
|
shouji:'收集',
|
2016-12-19 09:40:20 +00:00
|
|
|
|
shouji_info:'每回合限发动一次,每当你使用一张杀,你可以获得一张目标随机手牌的复制;每当你的杀被闪避,你可以获得一张目标随机装备牌的复制',
|
2016-12-05 02:45:27 +00:00
|
|
|
|
guimou:'鬼谋',
|
|
|
|
|
guimou_info:'每当你受到一次伤害,你可以获得伤害来源的一张手牌,若此牌是黑色,你展示此牌并重复此过程',
|
|
|
|
|
yingxi:'影袭',
|
2017-01-28 04:05:35 +00:00
|
|
|
|
yingxi_info:'回合结束阶段,若你本回合未造成伤害,你可以将一张黑色牌当作杀对任意一名角色使用,若目标未受到伤害,此杀不可闪避',
|
2016-07-16 02:11:40 +00:00
|
|
|
|
peiyu:'培育',
|
2017-01-12 14:50:54 +00:00
|
|
|
|
peiyu_info:'回合开始和结束阶段,你可以令一名没有图腾的角色获得一个随机图腾直到其首次受到伤害',
|
|
|
|
|
peiyu_old_info:'出牌阶段,你可以弃置一张牌令一名没有图腾的角色获得一个随机图腾,或令一名有图腾的角色替换一个图腾;你死亡时,其他角色失去以此法获得的图腾',
|
2016-06-21 07:47:20 +00:00
|
|
|
|
wzhanyi:'战意',
|
2016-06-25 06:30:34 +00:00
|
|
|
|
wzhanyi_info:'你可以跳过出牌阶段,改为摸三张牌并展示之,将摸到的装备牌置于装备区,然后可以使用手牌中的杀',
|
2016-06-20 16:09:42 +00:00
|
|
|
|
shengteng:'升腾',
|
|
|
|
|
shengteng_info:'锁定技,每当你使用锦囊牌造成伤害,你增加一点体力上限并回复一点体力',
|
|
|
|
|
yuansu:'元素',
|
2016-06-21 07:47:20 +00:00
|
|
|
|
yuansu_info:'出牌阶段限一次,若你已损失的体力值不少于3,你可以将体力上限降至与体力值相同,视为使用一张元素毁灭',
|
2016-06-20 12:02:56 +00:00
|
|
|
|
nuyan:'怒焰',
|
|
|
|
|
nuyan2:'怒焰',
|
|
|
|
|
nuyan_backup:'怒焰',
|
|
|
|
|
nuyan_info:'出牌阶段限一次,你可以将一张红色牌当作任意一张能造成伤害的牌使用(不得是你本局以此法使用过的牌)',
|
|
|
|
|
nuyan2_info:'出牌阶段限三次,你可以失去一点体力,视为使用任意一张能造成伤害的牌”',
|
|
|
|
|
chouhuo:'仇火',
|
|
|
|
|
chouhuo_info:'觉醒技,出牌阶段开始时,若你的怒焰技能已将可用的牌用完,你失去一点体力上限,获得两点护甲,然后将怒焰的描述改为“出牌阶段限三次,你可以失去一点体力,视为使用任意一张能造成伤害的牌”',
|
2016-05-29 03:20:57 +00:00
|
|
|
|
hsdusu:'毒素',
|
|
|
|
|
hsdusu_xueji:'血蓟',
|
2017-01-15 16:58:11 +00:00
|
|
|
|
hsdusu_xueji_info:'随机弃置一名角色的2张装备牌',
|
2016-05-29 03:20:57 +00:00
|
|
|
|
hsdusu_shinancao:'石楠草',
|
|
|
|
|
hsdusu_shinancao_info:'令一名角色下一次造成的伤害+1',
|
|
|
|
|
hsdusu_kuyecao:'枯叶草',
|
|
|
|
|
hsdusu_kuyecao_info:'令一名角色获得技能潜行,直到其下一回合开始',
|
|
|
|
|
hsdusu_huoyanhua:'火焰花',
|
2016-05-29 05:34:06 +00:00
|
|
|
|
hsdusu_huoyanhua_info:'对攻击范围内的一名角色造成一点火焰伤害',
|
2016-05-29 03:20:57 +00:00
|
|
|
|
hsdusu_huangxuecao:'皇血草',
|
2017-01-15 16:58:11 +00:00
|
|
|
|
hsdusu_huangxuecao_info:'摸两张牌',
|
2016-05-29 03:20:57 +00:00
|
|
|
|
duxin:'毒心',
|
2017-01-15 16:58:11 +00:00
|
|
|
|
duxin_info:'回合开始和结束阶段,若你的手中没有毒素牌,你可以获得一张随机毒素牌',
|
2016-05-29 02:40:12 +00:00
|
|
|
|
hstuteng:'图腾',
|
|
|
|
|
kuangluan:'狂乱',
|
|
|
|
|
kuangluan2:'狂乱',
|
2016-09-29 17:23:12 +00:00
|
|
|
|
// kuangluan_info:'锁定技,每当你于回合内使用一张非延时锦囊牌,便于出牌阶段结束时随机使用一张非延时锦囊牌(随机指定目标)',
|
2016-05-29 02:40:12 +00:00
|
|
|
|
kuangluan_info:'锁定技,每当一名其他角色对你造成伤害,该角色进入混乱状态直到当前回合结束;回合开始阶段,若上轮有至少两名不同角色因你而进入混乱状态,你回复全部体力并进入混乱状态进到本回合结束',
|
2016-05-28 23:59:49 +00:00
|
|
|
|
zengli:'赠礼',
|
|
|
|
|
zengli_info:'出牌阶段限一次,你指定一名其他角色与你各装备一把武器',
|
|
|
|
|
xiubu:'修补',
|
2017-01-28 02:03:53 +00:00
|
|
|
|
xiubu_info:'每当你装备一把未强化的武器,你可以获得数量等同于武器攻击范围的随机零件(冰冻零件除外)',
|
2016-05-28 14:54:09 +00:00
|
|
|
|
mobao:'魔爆',
|
|
|
|
|
mobao_info:'出牌阶段限一次,你可以弃置至多三张黑色牌,然后对所有于上轮对你造成过伤害的角色造成等同于你弃牌数的雷电伤害',
|
|
|
|
|
xianji:'献祭',
|
|
|
|
|
xianji2:'献祭',
|
|
|
|
|
xianji3:'献祭',
|
2017-01-18 03:00:22 +00:00
|
|
|
|
xianji_info:'其他角色可以在其回合结束阶段弃置1~2张手牌并令你摸等量的牌,若如此做,直到其下一回合结束,每当你使用卡牌指定其为目标时,其摸一张牌',
|
2016-03-22 06:45:57 +00:00
|
|
|
|
xueren:'血刃',
|
|
|
|
|
xueren_info:'每当你使用杀造成伤害,你可以令受伤害角色与你各流失一点体力,然后你摸两张牌',
|
|
|
|
|
maoxian:'冒险',
|
|
|
|
|
maoxian2:'冒险',
|
2016-08-11 11:52:17 +00:00
|
|
|
|
maoxian_info:'出牌阶段限两次,你可以从三个随机技能中选择一个作为你的技能',
|
2016-04-04 16:48:27 +00:00
|
|
|
|
tanmi:'探秘',
|
2017-01-18 08:58:53 +00:00
|
|
|
|
tanmi_info:'在一名其他角色的回合结束阶段,若你没有手牌,你可以摸两张牌并可以使用摸到的牌',
|
2016-03-22 06:45:57 +00:00
|
|
|
|
yiwen:'轶闻',
|
|
|
|
|
yiwen_info:'锁定技,每当其他角色于回合内首次使用卡牌指定你为惟一目标,你获得一张此牌的复制',
|
|
|
|
|
tanbao_old:'探宝',
|
|
|
|
|
tanbao_old_info:'出牌阶段限一次,你可以弃置三张牌,然后展示牌堆顶的三张牌,然后获得其中任意张类别不同的牌;若三张牌类别均不相同,你回复全部体力值',
|
|
|
|
|
qianghuax:'强化',
|
|
|
|
|
qianghuax_info:'出牌阶段限一次,你可以弃置任意张不同类别的牌,然后展示并获得与弃置的牌类别相同且价值更高的牌',
|
2016-03-19 10:39:09 +00:00
|
|
|
|
zhuizong:'追踪',
|
|
|
|
|
zhuizong_info:'出牌阶段限一次,你可以弃置任意张牌,观看牌堆顶的等同于弃牌数四倍的牌,然后获得其中的一张牌',
|
|
|
|
|
xunbao:'寻宝',
|
|
|
|
|
xunbao2:'寻宝',
|
2016-05-30 09:51:40 +00:00
|
|
|
|
xunbao_info:'回合开始阶段,若你的武将牌上没有藏宝图,你可以将一张藏宝图置于你的武将牌上;若你的武将牌上有藏宝图,你可以弃置一张与藏宝图点数相同的牌并获得此藏宝图',
|
2016-03-19 10:39:09 +00:00
|
|
|
|
xieneng:'邪能',
|
2016-06-17 15:44:19 +00:00
|
|
|
|
xieneng_info:'回合结束阶段,你可以选择一张神器牌并获得之',
|
2016-03-18 16:34:46 +00:00
|
|
|
|
fbeifa:'北伐',
|
|
|
|
|
fbeifa_info:'每当你失去最后一张手牌,你可以视为使用一张无视距离的杀,若此杀造成伤害,你摸一张牌,每回合最多发动3次',
|
|
|
|
|
yufa:'驭法',
|
|
|
|
|
yufa_info:'在任意一名其他角色的回合结束阶段,若你于此回合内受过其伤害,你可以将一张传送门交给除此角色外的任意一名角色',
|
|
|
|
|
bingyan:'冰焰',
|
|
|
|
|
bingyan_info:'出牌阶段限一次,你可以将一张红色牌当作炽羽袭,或将一张黑色牌当作惊雷闪使用',
|
2016-03-18 09:59:45 +00:00
|
|
|
|
hsshenqi:'神器',
|
|
|
|
|
hsshenqi_morijingxiang:'末日镜像',
|
2016-06-20 16:09:42 +00:00
|
|
|
|
hsshenqi_morijingxiang_info:'限武将牌正面朝上时使用,从所有其他角色的区域内各获得1~2张牌;使用后将武将牌翻至背面',
|
2016-03-18 09:59:45 +00:00
|
|
|
|
hsshenqi_kongbusangzhong:'恐怖丧钟',
|
2016-06-20 16:09:42 +00:00
|
|
|
|
hsshenqi_kongbusangzhong_info:'限武将牌正面朝上时使用,对所有其他角色各造成1~2点伤害;使用后将武将牌翻至背面',
|
2016-03-18 09:59:45 +00:00
|
|
|
|
hsshenqi_nengliangzhiguang:'能量之光',
|
2016-06-20 16:09:42 +00:00
|
|
|
|
hsshenqi_nengliangzhiguang_info:'限武将牌正面朝上时使用,令一名角色增加一点体力上限,回复一点体力,并摸四张牌;使用后将武将牌翻至背面',
|
2016-03-19 10:39:09 +00:00
|
|
|
|
hsbaowu:'宝物',
|
|
|
|
|
hsbaowu_huangjinyuanhou:'黄金猿猴',
|
2016-08-07 09:38:27 +00:00
|
|
|
|
hsbaowu_huangjinyuanhou_info:'回复一点体力并弃置所有手牌,然后获得等量的无中生有;直到下个回合开始,不能成为其他角色的卡牌目标',
|
2016-03-19 10:39:09 +00:00
|
|
|
|
hsbaowu_cangbaotu:'藏宝图',
|
|
|
|
|
hsbaowu_cangbaotu_info:'回合结束阶段,将一张黄金猿猴置入你的手牌;摸一张牌',
|
2017-01-15 09:55:22 +00:00
|
|
|
|
hsyaoshui:'药水',
|
2017-01-15 16:58:11 +00:00
|
|
|
|
hsqingyu:'青玉',
|
2016-05-28 23:59:49 +00:00
|
|
|
|
|
2016-03-18 09:59:45 +00:00
|
|
|
|
shifa:'嗜法',
|
|
|
|
|
shifa_info:'锁定技,出牌阶段开始时,你令场上所有角色各获得一张随机锦囊牌',
|
2016-03-17 07:30:23 +00:00
|
|
|
|
yuanzheng:'远征',
|
2017-01-08 04:09:34 +00:00
|
|
|
|
yuanzheng_info:'每当你对距离1以外的角色使用一张牌,你可以弃置目标区域内的一张牌',
|
|
|
|
|
bzhuiji:'追击',
|
|
|
|
|
bzhuiji_info:'每当一名角色死亡,你可以摸两张牌,并视为对杀死该角色的人使用一张决斗',
|
2016-03-17 07:30:23 +00:00
|
|
|
|
byuhuo:'浴火',
|
2016-06-18 13:55:54 +00:00
|
|
|
|
byuhuo2:'浴火',
|
|
|
|
|
byuhuo_info:'觉醒技,当你进入濒死状态时,你须将体力和体力上限变为2,并将武将牌翻至背面;在你的下一回合开始时,你对所有其他角色造成两点火焰伤害,在此之前,你不能成为其他角色的卡牌的目标',
|
2016-03-17 07:30:23 +00:00
|
|
|
|
yulu:'雨露',
|
2017-01-21 05:30:20 +00:00
|
|
|
|
yulu_info:'出牌阶段限一次,你可以指定任意名角色各摸一张牌,然后各弃置一区域内的一张牌',
|
2017-01-28 03:10:59 +00:00
|
|
|
|
duzhang:'毒瘴',
|
|
|
|
|
duzhang2:'毒瘴',
|
|
|
|
|
duzhang_info:'回合结束阶段,若你于本回合内未使用过锦囊牌,你可以指定一名其他角色令其下个回合无法使用锦囊牌',
|
2016-03-14 08:58:27 +00:00
|
|
|
|
hannu:'寒怒',
|
|
|
|
|
hannu_info:'锁定技,每当你受到一次伤害,你将手牌数翻倍;若你的手牌数因此超过10张,你随机弃置若干张手牌直到手牌数等于你当前的体力值',
|
|
|
|
|
chuidiao:'垂钓',
|
|
|
|
|
chuidiao_info:'锁定技,回合结束阶段,你随机摸0~2张牌',
|
|
|
|
|
fushi:'缚誓',
|
|
|
|
|
fushi_info:'出牌阶段,你可以令一名已受伤角色失去一点体力上限并回复一点体力',
|
|
|
|
|
hhudun:'护盾',
|
2016-05-20 15:15:49 +00:00
|
|
|
|
hhudun_info:'锁定技,回合开始阶段,若你的护甲值小于3,你获得一点护甲',
|
2016-03-04 13:31:26 +00:00
|
|
|
|
fenlie:'分裂',
|
2016-08-18 10:51:06 +00:00
|
|
|
|
fenlie_info:'锁定技,每当你于摸牌阶段外获得卡牌,你获得一张此牌的复制,每回合最多发动两次',
|
2016-03-04 13:31:26 +00:00
|
|
|
|
nianfu:'粘附',
|
|
|
|
|
nianfu_info:'出牌阶段限一次,你可以指定一名其他角色,随机弃置其1~2张装备牌',
|
|
|
|
|
shixu:'时序',
|
|
|
|
|
shixu_info:'锁定技,所有角色于出牌阶段每消耗3秒,便须于回合结束阶段弃置一张牌',
|
2016-03-22 06:45:57 +00:00
|
|
|
|
qianghua:'绝手',
|
2016-09-29 18:03:43 +00:00
|
|
|
|
qianghua_info:'出牌阶段内,你可以令一张你使用的基本牌或非延时锦囊牌额外结算一次,每回合限一次',
|
2016-03-04 13:31:26 +00:00
|
|
|
|
jixuan:'疾旋',
|
2017-01-18 08:58:53 +00:00
|
|
|
|
jixuan_info:'锁定技,回合结束后,你摸一张牌进行一个额外的回合',
|
2015-12-20 04:34:31 +00:00
|
|
|
|
biri:'蔽日',
|
2015-12-30 04:00:49 +00:00
|
|
|
|
biri_info:'每当距离你1以内的一名其他角色成为杀的惟一目标时,若杀的使用者不是你,你可以弃置一张闪取消之',
|
2015-12-20 04:34:31 +00:00
|
|
|
|
stuxi:'吐息',
|
|
|
|
|
stuxi_info:'锁定技,回合结束阶段,你令所有未翻面角色各弃置一张牌',
|
|
|
|
|
bingdong:'冰冻',
|
|
|
|
|
bingdong_info:'出牌阶段限一次,若你的武将牌正面朝上,你可以选择一名未翻面的角色与其同时将武将牌翻至背面',
|
|
|
|
|
ronghuo:'熔火',
|
|
|
|
|
ronghuo_info:'锁定技,你的普通杀均视为火杀',
|
|
|
|
|
luoshi:'落石',
|
|
|
|
|
luoshi_info:'锁定技,每当你受到一次伤害,你与伤害来源各随机弃置一张牌',
|
|
|
|
|
mianyi:'免疫',
|
2015-12-30 04:00:49 +00:00
|
|
|
|
mianyi_info:'锁定技,你不能成为其他角色的非延时锦囊的目标',
|
2015-12-20 04:34:31 +00:00
|
|
|
|
jiaohui:'教诲',
|
2017-01-28 02:03:53 +00:00
|
|
|
|
jiaohui_info:'回合结束阶段,若你没有于本回合内造成伤害,你可以令一名角色摸一张牌或回复一点体力',
|
2015-11-21 05:30:26 +00:00
|
|
|
|
chenshui:'沉睡',
|
|
|
|
|
chenshui_info:'回合结束阶段,你可以将一张随机梦境牌加入你的手牌',
|
2016-03-18 09:59:45 +00:00
|
|
|
|
hsmengjing:'梦境',
|
|
|
|
|
hsmengjing_card_config:'梦境',
|
|
|
|
|
hsmengjing_feicuiyoulong:'翡翠幼龙',
|
2017-01-15 06:58:39 +00:00
|
|
|
|
hsmengjing_feicuiyoulong_info:'出牌阶段对任意一名角色使用,对目标造成一点伤害',
|
2016-03-18 09:59:45 +00:00
|
|
|
|
hsmengjing_huanxiaojiemei:'欢笑姐妹',
|
2017-01-15 06:58:39 +00:00
|
|
|
|
hsmengjing_huanxiaojiemei_info:'出牌阶段对一名已受伤角色使用,令目标恢复一点体力',
|
2016-03-18 09:59:45 +00:00
|
|
|
|
hsmengjing_suxing:'苏醒',
|
|
|
|
|
hsmengjing_suxing_info:'令所有其他角色流失一点体力并随机弃置两张牌',
|
|
|
|
|
hsmengjing_mengye:'梦魇',
|
|
|
|
|
hsmengjing_mengye_info:'令一名角色摸1张牌,并在其下一个回合结束阶段弃置其所有牌',
|
|
|
|
|
hsmengjing_mengjing:'梦境',
|
|
|
|
|
hsmengjing_mengjing_info:'令一名角色将装备区内的所有牌收入手牌,并将一张乐不思蜀置于其判定区',
|
2015-11-18 03:39:14 +00:00
|
|
|
|
xjumo:'聚魔',
|
2015-11-30 13:08:29 +00:00
|
|
|
|
xjumo_info:'锁定技,你的手牌上限+3;若你已受伤,改为+5',
|
2015-11-18 03:39:14 +00:00
|
|
|
|
liehun:'裂魂',
|
2015-11-21 05:30:26 +00:00
|
|
|
|
liehun_info:'锁定技,回合结束阶段,你获得手牌中所有非基本牌的复制',
|
2015-11-18 03:39:14 +00:00
|
|
|
|
malymowang:'魔网',
|
2015-11-30 13:08:29 +00:00
|
|
|
|
malymowang2:'魔网',
|
2016-12-05 02:45:27 +00:00
|
|
|
|
malymowang_info:'锁定技,你的锦囊牌造成的伤害+1;出牌阶段开始时,你随机获得一张锦囊牌',
|
2015-11-18 03:39:14 +00:00
|
|
|
|
lingzhou:'灵咒',
|
|
|
|
|
lingzhou_info:'每当你使用一张锦囊牌,可令一名角色摸一张牌或回复一点体力',
|
|
|
|
|
mieshi:'灭世',
|
|
|
|
|
mieshi_info:'锁定技,回合结束阶段,你流失一点体力,并对一名随机的其他角色造成一点火焰伤害',
|
2015-12-19 09:28:50 +00:00
|
|
|
|
xshixin:'蚀心',
|
|
|
|
|
xshixin_info:'锁定技,每当你对一名其他角色造成一次伤害,受伤害角色与你各流失一点体力',
|
2015-11-18 03:39:14 +00:00
|
|
|
|
xmojian:'魔箭',
|
2016-06-25 16:38:59 +00:00
|
|
|
|
xmojian_info:'每当你的武将牌翻至正面时,你可以指定一名角色视为对其使用了一张杀',
|
2015-09-16 02:45:45 +00:00
|
|
|
|
enze:'恩泽',
|
2016-05-29 08:46:27 +00:00
|
|
|
|
enze_info:'出牌阶段限一次,你可以指定一名角色令其手牌数与你相等(至多摸三张牌)',
|
2015-09-03 03:49:14 +00:00
|
|
|
|
chongsheng:'重生',
|
2015-09-16 02:45:45 +00:00
|
|
|
|
chongsheng_bg:'生',
|
2015-10-09 11:29:32 +00:00
|
|
|
|
chongsheng_info:'濒死阶段,你可弃置所有牌,将体力回复至2-X,并摸X张牌,X为你本局发动此技能的次数。每局最多发动2次',
|
2016-07-16 02:11:40 +00:00
|
|
|
|
s_tuteng:'神谕',
|
2015-09-03 03:49:14 +00:00
|
|
|
|
s_tuteng_info:'在你首个回合开始时,你获得三个随机图腾;在此后的每个回合开始阶段,你随机替换其中的一个图腾',
|
|
|
|
|
guozai:'过载',
|
|
|
|
|
guozai2:'过载',
|
|
|
|
|
guozai2_bg:'载',
|
2016-08-28 00:30:25 +00:00
|
|
|
|
guozai_info:'出牌阶段限一次,你可将手牌补至四张,并于此阶段结束时弃置等量的牌',
|
2015-12-20 04:34:31 +00:00
|
|
|
|
guozaix:'重载',
|
|
|
|
|
guozaix2:'重载',
|
|
|
|
|
guozaix2_bg:'载',
|
|
|
|
|
guozaix_info:'出牌阶段限两次,你可将手牌补至四张,并于此阶段结束时弃置等量的牌',
|
2015-09-03 03:49:14 +00:00
|
|
|
|
hanshuang:'寒霜',
|
|
|
|
|
hanshuang_info:'锁定技,你使用黑色牌造成伤害后,受伤害角色须将武将牌翻至背面,然后你流失一点体力',
|
|
|
|
|
bingshi:'冰噬',
|
|
|
|
|
bingshi_info:'锁定技,你死亡时,对所有其他角色造成一点伤害',
|
|
|
|
|
huanwu:'唤雾',
|
|
|
|
|
huanwu_info:'出牌阶段限一次,你可以令一名角色增加一点体力上限,回复一点体力,并摸两张牌(每名角色限发动一次)',
|
|
|
|
|
fengnu:'风怒',
|
2017-01-26 11:13:30 +00:00
|
|
|
|
fengnu_info:'锁定技,你使用的任何卡牌无数量及距离限制;当你于回合内重复使用同名卡牌时,你摸一张牌(每回合最多以此法摸3张牌)',
|
2015-09-03 03:49:14 +00:00
|
|
|
|
shengdun:'圣盾',
|
|
|
|
|
shengdun2:'圣盾',
|
2015-10-20 17:44:00 +00:00
|
|
|
|
shengdun_info:'锁定技,回合开始阶段,若你没有护甲,你获得一点护甲',
|
2015-08-15 09:10:06 +00:00
|
|
|
|
jingmeng:'镜梦',
|
|
|
|
|
jingmeng_info:'每当你于回合内使用第一张牌时,你可以从牌堆中随机获得一张与之类型相同的牌',
|
|
|
|
|
kuixin:'窥心',
|
|
|
|
|
kuixin_info:'回合结束阶段,你可以将你的手牌与一名其他角色交换(手牌数之差不能多于1)',
|
2015-10-20 17:44:00 +00:00
|
|
|
|
lianzhan:'连斩',
|
|
|
|
|
lianzhan_info:'出牌阶段结束时,你可以摸X张牌,X为你本回合使用的卡牌数',
|
2017-01-16 02:22:48 +00:00
|
|
|
|
yanshu:'炎舞',
|
2016-11-30 15:02:10 +00:00
|
|
|
|
yanshu_info:'每回合限一次,当你弃置非基本牌后,你可以获得一张流星火雨',
|
2017-01-14 08:57:14 +00:00
|
|
|
|
bingshuang:'冰枪',
|
2015-08-15 09:10:06 +00:00
|
|
|
|
bingshuang_info:'你使用锦囊牌造成伤害后,可令目标摸两张牌并翻面',
|
|
|
|
|
shengyan:'圣言',
|
|
|
|
|
shengyan_info:'任意一名角色回复体力后,你可以令其额外回复一点体力,每回合限发动一次',
|
|
|
|
|
qingliu:'清流',
|
|
|
|
|
qingliu_info:'锁定技,你防止即将受到的火焰伤害',
|
|
|
|
|
liechao:'猎潮',
|
|
|
|
|
liechao_info:'出牌阶阶段限一次,若你的武将牌正面朝上且手牌数不大于当前体力值,你可以翻面并摸四张牌,若如此做,你跳过本回合的弃牌阶段',
|
2017-01-14 08:57:14 +00:00
|
|
|
|
aoshu:'奥术',
|
|
|
|
|
aoshu_info:'出牌阶段限一次,你可以将一张黑桃牌当作无中生有使用',
|
2015-08-15 09:10:06 +00:00
|
|
|
|
|
2015-06-27 16:21:25 +00:00
|
|
|
|
fengxing:'风行',
|
2017-01-18 08:58:53 +00:00
|
|
|
|
fengxing_info:'每当你于回合外首次失去牌,你可以弃置一张牌并摸两张牌',
|
2015-06-27 16:21:25 +00:00
|
|
|
|
xinci:'心刺',
|
|
|
|
|
xinci_info:'出牌阶段限一次,你可以弃置一张黑色牌令一名角色流失一点体力',
|
2016-08-29 11:00:45 +00:00
|
|
|
|
zhongjia:'战甲',
|
2017-01-16 02:22:48 +00:00
|
|
|
|
zhongjia_info:'锁定技,每当你受到一次伤害,你获得一点护甲;当你的体力值大于手牌数时,你的护甲不为你抵挡伤害',
|
2015-06-27 16:21:25 +00:00
|
|
|
|
dunji:'盾击',
|
2017-01-16 02:22:48 +00:00
|
|
|
|
dunji_info:'出牌阶段限一次,你可以失去你的所有护甲,并对等量的其他角色各造成一点伤害',
|
2015-06-27 16:21:25 +00:00
|
|
|
|
qiaodong:'巧动',
|
2015-07-09 05:21:22 +00:00
|
|
|
|
qiaodong_info:'你可以将一张装备牌当作闪使用或打出',
|
2015-06-27 16:21:25 +00:00
|
|
|
|
fengxian:'奉献',
|
|
|
|
|
fengxian_info:'出牌阶段限一次,你可以令场上所有角色各弃置一张手牌',
|
|
|
|
|
zhanhou:'战吼',
|
2015-12-15 05:13:47 +00:00
|
|
|
|
zhanhou_info:'出牌阶段限一次,你可以弃置一张防具牌并获得一点护甲值',
|
2015-06-27 16:21:25 +00:00
|
|
|
|
anying:'暗影',
|
|
|
|
|
anying_info:'限定技,出牌阶段,你可以弃置两张黑色牌,失去技能圣光,并获得技能心刺',
|
|
|
|
|
shijie:'视界',
|
|
|
|
|
shijie_info:'回合结束阶段,你可以获得一名其他角色的一张手牌,然后该角色摸一张牌',
|
|
|
|
|
shengguang:'圣光',
|
2016-06-08 13:06:42 +00:00
|
|
|
|
shengguang_info:'出牌阶段限一次,你可以弃置一张红色牌令一名角色回复一点体力',
|
2015-06-27 16:21:25 +00:00
|
|
|
|
bingjia:'冰甲',
|
|
|
|
|
bingjia2:'冰甲',
|
2016-12-19 09:40:20 +00:00
|
|
|
|
bingjia3:'冰甲',
|
|
|
|
|
bingjia3_bg:'免',
|
|
|
|
|
bingjia_info:'出牌阶段,若你武将牌上没有牌,你可以将一张手牌背面朝上置于你的武将牌上,当你成为其他角色的与此牌花色相同的牌的目标时,你将此牌置于弃牌堆,获得一点护甲,并且本回合内防止所有伤害',
|
2015-06-27 16:21:25 +00:00
|
|
|
|
bianxing:'变形',
|
2015-08-15 09:10:06 +00:00
|
|
|
|
bianxing_info:'当一其他角色于回合内使用卡牌指定了惟一的其他目标后,你可以用一张合理的基本牌替代此牌,每名角色的回合限一次',
|
2015-06-19 15:31:36 +00:00
|
|
|
|
xianzhi:'先知',
|
|
|
|
|
xianzhi_info:'任意一名角色进行判定前,你可以观看牌堆顶的两张牌,并可以将其调换顺序',
|
2015-09-10 09:35:58 +00:00
|
|
|
|
mdzhoufu:'缚魂',
|
|
|
|
|
mdzhoufu2:'缚魂',
|
2015-09-03 03:49:14 +00:00
|
|
|
|
mdzhoufu_info:'出牌阶段,你可以将一张黑色手牌置于一名其他角色的武将牌上,在其判定时以此牌作为判定结果,然后你获得亮出的判定牌',
|
2017-01-18 08:58:53 +00:00
|
|
|
|
zuzhou:'诅咒',
|
|
|
|
|
zuzhou_info:'锁定技,回合开始阶段,若场上没有闪电且你手牌中有黑桃牌,你将牌堆中的一张闪电置于你的判定区',
|
|
|
|
|
zuzhou_old_info:'每当你造成或受到一次伤害,你可以令伤害目标或来源进行一次判定,若结果为黑色,其流失一点体力',
|
2015-06-19 15:31:36 +00:00
|
|
|
|
jingxiang:'镜像',
|
2017-01-18 08:58:53 +00:00
|
|
|
|
jingxiang_info:'每回合限一次,当你需要打出卡牌时,你可以观看一名角色的手牌并将其视为你的手牌打出',
|
2016-05-21 00:27:08 +00:00
|
|
|
|
tuteng:'图腾',
|
|
|
|
|
tuteng_info:'出牌阶段,你可以获得一个随机图腾;每当你受到一次伤害,你随机失去一个图腾',
|
2015-09-22 03:53:35 +00:00
|
|
|
|
zuling:'祖灵',
|
2016-05-21 00:27:08 +00:00
|
|
|
|
zuling_info:'觉醒技,回合开始阶段,若你拥有至少2个图腾,你失去一点体力上限,并将图腾描述中的“获得一个随机图腾”改为“获得任意一个图腾”',
|
2015-06-10 09:10:24 +00:00
|
|
|
|
tuteng1:'治疗图腾',
|
2016-05-29 02:40:12 +00:00
|
|
|
|
tuteng1_info:'回合结束阶段,你回复一点体力',
|
2015-06-10 09:10:24 +00:00
|
|
|
|
tuteng2:'灼热图腾',
|
2016-05-29 02:40:12 +00:00
|
|
|
|
tuteng2_info:'每当你造成一点伤害,你摸一张牌',
|
2015-06-10 09:10:24 +00:00
|
|
|
|
tuteng3:'石爪图腾',
|
2016-05-29 02:40:12 +00:00
|
|
|
|
tuteng3_info:'你受到的伤害-1',
|
2015-06-10 09:10:24 +00:00
|
|
|
|
tuteng4:'空气之怒图腾',
|
2016-10-07 14:00:06 +00:00
|
|
|
|
tuteng4_info:'在你的回合内,你的锦囊牌造成的首次伤害+1',
|
2015-09-03 03:49:14 +00:00
|
|
|
|
tuteng5:'法力之潮图腾',
|
2016-05-29 02:40:12 +00:00
|
|
|
|
tuteng5_info:'回合结束阶段,你摸一张牌',
|
2015-09-03 03:49:14 +00:00
|
|
|
|
tuteng6:'火舌图腾',
|
2016-10-07 14:00:06 +00:00
|
|
|
|
tuteng6_info:'在你的回合内,你的杀造成的首次伤害+1',
|
2015-09-03 03:49:14 +00:00
|
|
|
|
tuteng7:'活力图腾',
|
2016-05-29 02:40:12 +00:00
|
|
|
|
tuteng7_info:'回合结束阶段,你令一名其他角色回复一点体力',
|
2015-09-22 03:53:35 +00:00
|
|
|
|
tuteng8:'图腾魔像',
|
2016-05-29 02:40:12 +00:00
|
|
|
|
tuteng8_info:'当计算你与其它角色的距离时,始终-1',
|
2015-06-10 09:10:24 +00:00
|
|
|
|
tzhenji:'震击',
|
2015-08-15 09:10:06 +00:00
|
|
|
|
tzhenji_info:'每当你因弃置而失去黑色牌,可对一名角色造成1点雷电伤害,并随机弃置其一张牌,每回合限发动一次',
|
2015-06-10 09:10:24 +00:00
|
|
|
|
fenliu:'分流',
|
|
|
|
|
fenliu_info:'出牌阶段限一次,你可以失去一点体力并获得3张牌',
|
|
|
|
|
hongxi:'虹吸',
|
|
|
|
|
hongxi_info:'锁定技,每当有一名角色死亡,你将体力回复至体力上限',
|
|
|
|
|
jihuo:'激活',
|
2016-06-09 15:06:55 +00:00
|
|
|
|
jihuo_info:'在你的回合结束后,你可以弃置一张手牌并进行一个额外的回合',
|
2015-06-13 06:53:40 +00:00
|
|
|
|
jianren:'剑刃',
|
|
|
|
|
jianren_info:'出牌阶段限一次,你可以弃置装备区内的武器牌,对所有其他角色造成一点伤害',
|
|
|
|
|
mengun:'闷棍',
|
|
|
|
|
mengun2:'闷棍',
|
|
|
|
|
mengun_info:'每当一名其他角色于回合内使用基本牌,你可以弃置一张与之花色相同的牌令其收回此牌,且在本回合内不能再次使用,每回合限一次',
|
|
|
|
|
wlianji:'连击',
|
|
|
|
|
wlianji_info:'回合结束阶段,若你本回合使用的卡牌数大于你当前的体力值,你可以摸两张牌',
|
2015-06-10 09:10:24 +00:00
|
|
|
|
},
|
|
|
|
|
}
|